@Test
    @Ignore("Test execution is depending on server technical characteristics.")
    // ToDo: Need to rewrite.
    public void Should_ignoreExceptionsFromTask()
            throws Exception {
        ITask taskMock1 = mock(ITask.class), taskMock2 = mock(ITask.class);
        doThrow(new TaskExecutionException("Whoops!")).when(taskMock1).execute();
        thread.execute(taskMock1);
        verify(taskMock1, timeout(100)).execute();
        Thread.sleep(200);
        thread.execute(taskMock2);
        verify(taskMock2, timeout(100)).execute();    }
@Test
    @Ignore("Test execution is depending on server technical characteristics.")
   
    public void Should_ignoreExceptionsFromTask()
            throws Exception {
        ITask taskMock1 = mock(ITask.class), taskMock2 = mock(ITask.class);
        doThrow(new TaskExecutionException("Whoops!")).when(taskMock1).execute();
        thread.execute(taskMock1);
        verify(taskMock1, timeout(100)).execute();
        Thread.sleep(200);
        thread.execute(taskMock2);
        verify(taskMock2, timeout(100)).execute();    }
@test @ignore("test execution is depending on server technical characteristics.") public void should_ignoreexceptionsfromtask() throws exception { itask taskmock1 = mock(itask.class), taskmock2 = mock(itask.class); dothrow(new taskexecutionexception("whoops!")).when(taskmock1).execute(); thread.execute(taskmock1); verify(taskmock1, timeout(100)).execute(); thread.sleep(200); thread.execute(taskmock2); verify(taskmock2, timeout(100)).execute(); }