final GWTCommandScheduler.GWTCommandTimer theTimerDummy = new GWTCommandTimerDummy(theClientCommand);
PowerMockito.whenNew(GWTCommandScheduler.GWTCommandTimer.class).withArguments(theClientCommand).thenReturn(theTimerDummy);
assertFalse(theClientCommand.isExecuted);
theGWTCommandScheduler.schedule(theClientCommand);
assertTrue(theClientCommand.isExecuted);
}
private class ClientCommandDummy implements ClientCommand<Void>