public void test_config() throws Exception { Assert.assertEquals(true, dataSource.isTestOnBorrow()); // default Assert.assertEquals(8, dataSource.getMaxActive()); Assert.assertEquals(1, dataSource.getProxyFilters().size()); dataSource.init(); Assert.assertEquals(false, dataSource.isTestOnBorrow()); Assert.assertEquals(11, dataSource.getMaxActive()); Assert.assertEquals("jdbc:mock:config-1", dataSource.getUrl()); Assert.assertEquals(MockDriver.instance, dataSource.getDriver()); Assert.assertEquals(3, dataSource.getProxyFilters().size()); Connection conn = dataSource.getConnection(); conn.close(); }