### Question:
InlineExecutor implements Executor { @Override public final void execute(Runnable command) { command.run(); }  @Override final void execute(Runnable command);  }### Answer:
@Test public void testExecute() { final Thread[] result = new Thread[1]; new InlineExecutor().execute(new Runnable() { @Override public void run() { result[0] = Thread.currentThread(); } }); Assert.assertEquals(Thread.currentThread(), result[0]); }