@Test
public void testExecute() throws Exception
{

    BlockingCommandCallback blockingCommandCallback = mock( BlockingCommandCallback.class );
    when( remotePeer.getBlockingCommandCallback( any( CommandCallback.class ) ) )
            .thenReturn( blockingCommandCallback );
    remotePeer.execute( requestBuilder, containerHost );
    verify( blockingCommandCallback ).getCommandResult();
    remotePeer.execute( requestBuilder, containerHost, commandCallback );
    verify( blockingCommandCallback, times( 2 ) ).getCommandResult();
}