@Test(timeout = 100L)
public void Should_exit_When_threadIsInterrupted()
        throws Exception {

    ExecutionTask executionTask = new ExecutionTask(dispatcherMock);
    when(dispatcherMock.getExecutionTask()).thenReturn(executionTask);
    Thread.currentThread().interrupt();
    executionTask.execute();
    verify(queueMock, never()).tryTake();
    assertTrue(Thread.interrupted());
}