// ToDo: Need to rewrite.
@Test(expected = TaskExecutionException.class)
    @Ignore("Test execution is depending on server technical characteristics.")
    // ToDo: Need to rewrite.
    public void Should_throwWhenThreadIsNotAlive()
            throws Exception {
        ITask taskMock = mock(ITask.class);
        thread.interrupt();
        thread.execute(taskMock);
        fail();
    }
@Test(expected = TaskExecutionException.class)
@Ignore("Test execution is depending on server technical characteristics.")
// ToDo: Need to rewrite.
public void Should_throwWhenThreadIsNotAlive()
throws Exception {
@Test(expected = TaskExecutionException.class)
@Ignore("Test execution is depending on server technical characteristics.")
// ToDo: Need to rewrite.
public void Should_throwWhenThreadIsNotAlive()
throws Exception {
ITask taskMock = mock(ITask.class);
thread.interrupt();
thread.execute(taskMock);
fail();
}
@Test(expected = TaskExecutionException.class)
@Ignore("Test execution is depending on server technical characteristics.")
// ToDo: Need to rewrite.
public void Should_throwWhenThreadIsNotAlive()
throws Exception {
ITask taskMock = mock(ITask.class);
thread.interrupt();
thread.execute(taskMock);
fail();
}