@Test(expected = IllegalStateException.class)
public void testGetUnexistentClass() {

    when(taskQueryService.getTaskInstanceById(TASK_ID)).thenReturn(null);
    command.execute(taskContext);
    fail();
}