CommandExecutorImpl implements CommandExecutor { @Override public void executeAsync( final String hostId, final RequestBuilder requestBuilder ) throws CommandException { executeAsync( hostId, requestBuilder, new DummyCallback() ); } CommandExecutorImpl( CommandProcessor commandProcessor ); @Override CommandResult execute( final String hostId, final RequestBuilder requestBuilder ); @Override CommandResult execute( final String hostId, final RequestBuilder requestBuilder,
                                  final CommandCallback callback ); @Override void executeAsync( final String hostId, final RequestBuilder requestBuilder ); @Override void executeAsync( final String hostId, final RequestBuilder requestBuilder, final CommandCallback callback );  }
@Test public void testExecuteAsync() throws Exception { commandExecutor.executeAsync( HOST_ID, requestBuilder ); verify( commandProcessor ).execute( any( Request.class ), isA( DummyCallback.class ) ); }