@Test
public void newFixedThreadPool2() throws Exception {

    BlockingQueue<Runnable> queue = new SynchronousQueue<Runnable>();
    ThreadFactory factory = new NamedThreadFactory("xxx");
    ThreadPoolExecutor executor = ThreadPoolUtils.newFixedThreadPool(10, queue, factory);
    Assert.assertEquals(executor.getCorePoolSize(), 10);
    Assert.assertEquals(executor.getMaximumPoolSize(), 10);
    Assert.assertEquals(executor.getQueue(), queue);
    Assert.assertEquals(executor.getThreadFactory(), factory);
}