___________ creates an imposter for a given type that forwards

creates-an-imposter-for-a-given-type-that-forwards

___________ creates an imposter for a given type that forwards Invocations to an Invokable object.

A. canImposterise(Class<?> type)

B. Imposterise(Class<?> type)

C. imposterise(Invokable mockObject, Class<T> mockedType, Class<?>… ancilliaryTypes)

D. imposter()

The question was posed to me in an internship interview.

I need to ask this question from Maven Introduction topic in section Running JUnit Tests from Maven2 of JUnit

Correct option is C. imposterise(Invokable mockObject, Class<T> mockedType, Class<?>… ancilliaryTypes)

For explanation I would say: imposterise(Invokable mockObject, Class<T> mockedType, Class<?>… ancilliaryTypes) returns a new imposter. The imposter must implement the mockedType and all the ancialliaryTypes.