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

    when(taskExecutionState.getTaskAs(same(IShutdownAwareTask.class)))
            .thenReturn(shutdownAwareTask);
    doThrow(ShutdownAwareTaskNotificationException.class)
            .when(shutdownAwareTask).notifyIgnored();
    new IgnoreTaskStrategy().process(taskExecutionState);
}