@PrepareForTest({GWTCommandScheduler.class, GWTCommandScheduler.GWTCommandTimer.class})
public class GWTCommandSchedulerTest
{
@Test
public void testSchedule() throws Exception {
GWTCommandScheduler theGWTCommandScheduler = new GWTCommandScheduler();
final ClientCommandDummy theClientCommand = new ClientCommandDummy();
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);
}