@After public void tearDown() { tp.getScheduledExecutor().shutdownNow(); // Make sure thare are not left over updates in the queue assertTrue( "Updates left in controller update queue", controller.isUpdateQueueEmptyForTesting()); }