@Test
public void buildQueue() throws Exception {

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