@Test
public void testRun() throws Exception
{

    responseProcessor.run();
    verify( commandProcess ).appendResponse( response );
    verify( commandProcess ).getCallback();
    verify( callback ).onResponse( eq( response ), any( CommandResult.class ) );
    verify( commandProcess ).isDone();
    verify( commandProcessor ).remove( any( Request.class ) );
    verify( commandProcess ).stop();
    RuntimeException exception = mock( RuntimeException.class );
    doThrow( exception ).when( commandProcess ).isDone();
    responseProcessor.run();
    verify( exception ).printStackTrace( any( PrintStream.class ) );
}