Class SpyOnInjectedFieldsHandler

java.lang.Object
org.mockito.internal.configuration.injection.MockInjectionStrategy
org.mockito.internal.configuration.injection.SpyOnInjectedFieldsHandler

public class SpyOnInjectedFieldsHandler extends MockInjectionStrategy
Handler for field annotated with @InjectMocks and @Spy.

The handler assumes that field initialization AND injection already happened. So if the field is still null, then nothing will happen there.