    @Test
    public void cancelAndDontBlockWhenRunnable() throws Exception {

        setTaskState("RUNNABLE");
        Assert.assertTrue(task.cancel(false));
        Assert.assertEquals("CANCELLED", getTaskState());
    }