@Test
public void buildQueue1() throws Exception {

    BlockingQueue<Runnable> queue = ThreadPoolUtils.buildQueue(0, true);
    Assert.assertEquals(queue.getClass(), SynchronousQueue.class);
    queue = ThreadPoolUtils.buildQueue(-1, true);
    Assert.assertEquals(queue.getClass(), PriorityBlockingQueue.class);
    queue = ThreadPoolUtils.buildQueue(100, true);
    Assert.assertEquals(queue.getClass(), PriorityBlockingQueue.class);
    queue = ThreadPoolUtils.buildQueue(-1, false);
    Assert.assertEquals(queue.getClass(), LinkedBlockingQueue.class);
    queue = ThreadPoolUtils.buildQueue(100, false);
    Assert.assertEquals(queue.getClass(), LinkedBlockingQueue.class);
}