@Test
public void Should_doNothingWithTaskThatIsNotAwareOfShutdownRequests()
        throws Exception {

    when(taskExecutionState.getTaskAs(same(IShutdownAwareTask.class)))
            .thenThrow(InvalidArgumentException.class);
    new IgnoreTaskStrategy().process(taskExecutionState);
    verify(taskExecutionState).getTaskAs(same(IShutdownAwareTask.class));
    verifyNoMoreInteractions(taskExecutionState);
}