// ToDo: Need to rewrite.
@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.")
// ToDo: Need to rewrite.
public void Should_ignoreExceptionsFromTask()
throws Exception {
@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.")
// 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(); }