MockitoListener
is being added to Mockito (see MockitoFramework)
and there is already a listener with this implementation type registered.MockitoFramework.addListener(MockitoListener) make sure to remove it.mock with newHandler.Answer to be used with Mockito.mock(Class, Answer).Answer of every mock if the mock was not stubbed.Answer to be used with Mockito.mock(Class, Answer)Answer to be used with Mockito.mock(Class, Answer).Answer to be used with Mockito.mock(Class, Answer).MockitoRule.