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

    ITaskExecutionState taskExecutionState = mock(ITaskExecutionState.class);
    IShutdownAwareTask shutdownAwareTask = mock(IShutdownAwareTask.class);
    when(taskExecutionState.getTaskAs(same(IShutdownAwareTask.class))).thenReturn(shutdownAwareTask);
    doThrow(ShutdownAwareTaskNotificationException.class).when(shutdownAwareTask).notifyShuttingDown();
    new NotifyTaskStrategy().process(taskExecutionState);
}