@Test public void testReportsAFailureIfOuputIsUnexpected() throws Exception { Call call = new Call(new StaticInvocation(calculator, Calculator.ADD)); call.addInput("3"); call.expect(ShouldBe.equal(3)); call.will(Annotate.wrong(annotatable)).when(ResultIs.wrong()); call.execute(); verify(annotatable).annotate(any(WrongAnnotation.class)); }