public boolean isSatisfied() throws Exception {
return doSomething.isExecuted();
}
});
} finally {
executorService.shutdownNow();
}
}
public void testMultipleExecutions() throws Exception {
BlockingTaskAwareExecutorServiceImpl executorService = createExecutorService();