@Test
public void testStop() throws Exception
{

    commandProcess.stop();
    verify( semaphore ).release();
    verify( executor ).shutdown();
    commandProcess.status = CommandStatus.RUNNING;
    commandProcess.stop();
    assertEquals( CommandStatus.TIMEOUT, commandProcess.status );
}