@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.")
   
    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.") public void should_throwwhenthreadisnotalive() throws exception { itask taskmock = mock(itask.class); thread.interrupt(); thread.execute(taskmock); fail(); }