Mockito.when(testExecutor.getMethod()).thenReturn(
getTestMethod("shouldReturnFailedOnException"));
Mockito.doThrow(exception).when(testExecutor).invoke();
fire(new LocalExecutionEvent(testExecutor));
TestResult result = getManager().resolve(TestResult.class);
Assert.assertNotNull(
"Should have set result",
result);