@Test
public void testCreateInstance() {

    String poolName = "testCreateInstance";
    QueueingThreadPoolExecutor.createInstance(poolName, 1);
    QueueingThreadPoolExecutor.createInstance(poolName, 2);
    QueueingThreadPoolExecutor.createInstance(poolName, 5);
    QueueingThreadPoolExecutor.createInstance(poolName, 10);
    QueueingThreadPoolExecutor.createInstance(poolName, 1000);
    QueueingThreadPoolExecutor.createInstance(poolName, 10000);
    QueueingThreadPoolExecutor.createInstance(poolName, 100000);
    QueueingThreadPoolExecutor.createInstance(poolName, 1000000);
    // no threads created
    assertFalse(areThreadsFromPoolRunning(poolName));
}