@Test(expected = RuntimeException.class) public void verifyException() { doThrow(new RuntimeException()).when(service).operationOne(); app.operationOne(); }
@Test public void verifySimpleCall() { app.operationOne(); verify(service).operationOne(); }