assertEquals(1, result.size());
}
@Test(expected=ExecutionException.class) public void testScheduleException() throws Exception {
ThreadReuseExecutor pool = new ThreadReuseExecutor("test", 5); //$NON-NLS-1$
ScheduledFuture<?> future = pool.schedule(new Runnable() {
@Override
public void run() {
throw new RuntimeException();
}
}, 0, TimeUnit.MILLISECONDS);