SynchronousSpeechEventExecutor implements SpeechEventExecutor { public void execute(final Runnable command) { command.run(); } SynchronousSpeechEventExecutor(); void execute(final Runnable command);  }
@Test public void testExecute() throws Exception { final Collection<Integer> list = new java.util.ArrayList<Integer>(); final Runnable runnable1 = new Runnable() { public void run() { list.add(new Integer(1)); } }; final Runnable runnable2 = new Runnable() { public void run() { list.add(new Integer(2)); } }; executor.execute(runnable1); executor.execute(runnable2); Assert.assertEquals(2, list.size()); final Iterator<Integer> iterator = list.iterator(); Assert.assertEquals(new Integer(1), iterator.next()); Assert.assertEquals(new Integer(2), iterator.next()); }