private int privateMethod(Object o, boolean b) throws Exception
--
PowerMockito.doThrow(new Throwable("Just a throwable")).when(spy, "privateMethod", Mockito.any(), Mockito.any());
--
org.mockito.exceptions.misusing.UnfinishedStubbingException:
Unfinished stubbing detected
I already tried switching the any() to anyObject() etc. But i am getting the stubbing problem...
Where is the error?