### Question:
UIEventsExecutorImpl implements UIEventsExecutor { @Override public void execute(final Runnable command) { delegate.execute(command); } UIEventsExecutorImpl(final PatchacaUncaughtExceptionHandler handler); @Override void execute(final Runnable command);  }### Answer:
@Test public void testExecute() throws InterruptedException, ExecutionException { final long[] times = { 100, 500, 25, 250, 50 }; final List<Long> expected = new ArrayList<Long>(times.length); final List<FutureTask<Object>> commands = new ArrayList<FutureTask<Object>>( times.length); for (final Long millis : times) { expected.add(millis); commands.add(newExpensiveCommand(millis)); } final UIEventsExecutorImpl executor = new UIEventsExecutorImpl(null); enqueueEveryone(commands, executor); waitForEveryoneToFinish(commands); Assert.assertEquals(expected, this.executed); }