@Test(expected=Exception.class)
public void testRunnableWithResultReturnsExceptionOnFailure() throws Exception {

    PerformanceMonitor perfMon = new PerformanceMonitor();
    Integer returnResult = 21;
    perfMon.invoke(new OccasionalExceptionPerformer(1), returnResult);
}