When I try to Spy an object in my unit test, I got an exception. This is my unit test file:
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(loc
Use powermock-api-mockito2 if you are using 2.x.x version of mockito-core as powermock-api-mockito is not compatible with mockito-core 2.
powermock-api-mockito2
mockito-core
powermock-api-mockito
mockito-core 2