mockCtx.checking(new Expectations(){{
allowing(jobEx).isShutdown(); will(returnValue(true));
}});
Assert.assertEquals(RecoveryStrategy.TERMINATE,
new DefaultExceptionHandler().onException(jobEx, new InterruptedException("foo"), null));
mockCtx.assertIsSatisfied();
}
@Test
public void testOnException_OtherEx() {
Assert.assertEquals(RecoveryStrategy.TERMINATE,