}
@Test
public void testThreadPoolExecutor() throws InterruptedException {
final Boolean[] data = new Boolean[]{false};
AsynchronousExecutor executor = new AsynchronousExecutor();
executor.execute(new Runnable() {
public void run() {
data[0] = true;
}
});
executor.join();
assertTrue(data[0]);
}