}
@Test(expected=RejectedExecutionException.class) public void testShutdown() throws Exception {
ThreadReuseExecutor pool = new ThreadReuseExecutor("test", 5); //$NON-NLS-1$
pool.shutdown();
pool.execute(new FakeWorkItem(1));
}
@Test public void testScheduleCancel() throws Exception {
ThreadReuseExecutor pool = new ThreadReuseExecutor("test", 5); //$NON-NLS-1$
ScheduledFuture<?> future = pool.scheduleAtFixedRate(new Runnable() {