import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.reflect.Whitebox;
import org.powermock.modules.junit4.PowerMockRunner;
+import static org.junit.Assert.assertNotNull;
@RunWith(PowerMockRunner.class)
@PrepareForTest(EncryptionTool.class)
Mockito.doThrow(new IOException("testing exception")).when(mockProp).load(mockIS);
Whitebox.setInternalState(defaultConfiguration, "properties", mockProp);
defaultConfiguration.setProperties(mockIS);
+ assertNotNull(mockIS);
// Should come here without exception
}