@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);
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/common/src/test/java/com/alipay/sofa/rpc/common/utils/ThreadPoolUtilsTest.java