@Test
public void testGetResult() throws Exception
{

    try
    {
        commandProcessor.getResult( COMMAND_ID );
        fail( "Expected CommandException" );
    }
    catch ( CommandException e )
    {
    }
    when( commands.get( COMMAND_ID ) ).thenReturn( process );
    commandProcessor.getResult( COMMAND_ID );
    verify( process ).waitResult();
}