___________ is used for the creation of a mock object, with the

is-used-for-the-creation-of-a-mock-object-with-the

___________ is used for the creation of a mock object, with the specification of it being of the requested type, which has implementations of the given interface or extends the given class.

A. createMock(Class<T> toMock)

B. createMock(MockType type, Class<T> toMock)

C. createMock(String name, Class<T>toMock)

D. createMock(String name, MockType type, Class<T>toMock)

The question was asked in an internship interview.

This intriguing question comes from Ant in division Running JUnit Tests from Ant of JUnit

Correct choice is B. createMock(MockType type, Class<T> toMock)

Easy explanation: createMock(MockType type, Class<T> toMock) is the old version of mock(MockType, Class), which is more completion friendly.