@Test public void completed() throws Exception{ CountingRunnable runnable = new CountingRunnable(); NotifyingFutureTask nft = NotifyingFutureTask.completed(); nft.onComplete(runnable); assertEquals("Callback should still be invoked if already done", 1, runnable.count); }