@Test
public void Should_notifyAndExecuteTask()
        throws Exception {

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