I am using Mockito+TestNG framework in my Project. It is used to work fine but to mock some static methods I injected PowerMock Libraries in my classpath and updated the code to use PowerMock(libraries screenshot MockDependencies.PNG attached). I am finding that whenever I try to execute : PowerMockito.doNothing().when(CustomImportUtil.class, "init", serviceMgr);
test case fails while initializing mockobject [s = mock(Service.class);] with error message :
-------------------------------------
Below is my sample
java test class. Kindly help me to resolve this issue.
----------