@Test(expected = TaskExecutionException.class)
    @Ignore("Test execution is depending on server technical characteristics.")
    // ToDo: Need to rewrite.
    public void Should_throwWhenAnotherTaskIsBeingExecuted()
            throws Exception {
        thread.execute(() -> {
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                thread.interrupt();
            }
        });
        thread.execute(mock(ITask.class));
    }
@Test(expected = TaskExecutionException.class)
    @Ignore("Test execution is depending on server technical characteristics.")
   
    public void Should_throwWhenAnotherTaskIsBeingExecuted()
            throws Exception {
        thread.execute(() -> {
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                thread.interrupt();
            }
        });
        thread.execute(mock(ITask.class));
    }
@test(expected = taskexecutionexception.class) @ignore("test execution is depending on server technical characteristics.") public void should_throwwhenanothertaskisbeingexecuted() throws exception { thread.execute(() -> { try { thread.sleep(200); } catch (interruptedexception e) { thread.interrupt(); } }); thread.execute(mock(itask.class)); }