CommandProcess { boolean isDone() { return !( status == CommandStatus.RUNNING || status == CommandStatus.NEW ); } CommandProcess( final CommandProcessor commandProcessor, final CommandCallback callback, final Request request,
                    final String rhId, final Session userSession ); void stop();  }
@Test public void testIsDone() throws Exception { boolean done = commandProcess.isDone(); assertFalse( done ); commandProcess.status = CommandStatus.FAILED; done = commandProcess.isDone(); assertTrue( done ); }