pool.setIdleTimeout(1 * 1000);
pool.setMaxIdleTime(1 * 1000);
    public void testIdleRemoverAndMinPoolSize() throws Exception {        pool.setIdleTimeout(1 * 1000);        pool.setMinPoolSize(1);                try {            Connection con = pool.getPooledConnection().getConnection();                        assertTrue("Should have totally 1 connection",                 pool.getTotalSize() == 1);                            assertTrue("Should have 1 working connection",                 pool.getWorkingSize() == 1);                        con.close();                        assertTrue("Working size should be 0",                 pool.getWorkingSize() == 0);                        Thread.sleep(10 * 1000 + 5 * 1000);                        assertTrue("Total size should be 1",                pool.getTotalSize() == 1);                    } finally {            pool.shutdown();        }    }