@Test
public void testProcessNextResponse() throws Exception
{

    commandProcess.processNextResponse( response );
    verify( executor ).execute( isA( ResponseProcessor.class ) );
    //----------
    RuntimeException exception = mock( RuntimeException.class );
    doThrow( exception ).when( executor ).execute( any( ResponseProcessor.class ) );
    commandProcess.processNextResponse( response );
    verify( exception ).printStackTrace( any( PrintStream.class ) );
    //----------
    reset( executor );
    commandProcess.userSession = null;
    commandProcess.processNextResponse( response );
    verify( executor ).execute( isA( ResponseProcessor.class ) );
    verify( session, times( 2 ) ).getSubject();
}