@Test public void testDoExecute() throws Exception { // test execution command.doExecute(); verify(commandExecutor) .executeAsync(any(String.class), any(RequestBuilder.class), isA(CommandCallback.class)); }
@Before public void setUp() throws Exception { command = new ExecAsyncCommand(commandExecutor); command.hostId = HOST_ID; command.command = COMMAND; }