CustomizableThreadFactory factory = new CustomizableThreadFactory("foo");
Thread thread = factory.newThread(runnable);
assertEquals("foo-1", thread.getName());
Thread thread2 = factory.newThread(runnable);
assertEquals("foo-2", thread2.getName());
}
@Test
public void gracefulShutdown() throws InterruptedException {