ControlledThreadPoolExecutorService extends ThreadPoolExecutor { public String getName() { return name; } ControlledThreadPoolExecutorService(String name, int numberOfThread, int queueSize); @Override void execute(Runnable runnable); @Override void afterExecute(Runnable runnable, Throwable throwable); void sendShutdownSignal(); String getName(); long getProcessed();  }
@Test public void testGetName() { final ControlledThreadPoolExecutorService controlledThreadPoolExecutor = new ControlledThreadPoolExecutorService( "test", 4, 2); assertEquals("test", controlledThreadPoolExecutor.getName()); }