@Test
public void testPoolCacheEviction() throws Throwable {
TestUtils.createFooDatabase(DB_1 + ".1", 1, "foo1");
TestUtils.createFooDatabase(DB_2 + ".1", 2, "foo2");
SploutConfiguration testConfig = SploutConfiguration.getTestConfig();
// Set cache eviction to something quite low
testConfig.setProperty(DNodeProperties.EH_CACHE_SECONDS, 1);
//
DNodeHandler dHandler = new DNodeHandler();
DNode dnode = TestUtils.getTestDNode(testConfig, dHandler, "dnode-" + this.getClass().getName() + "-2");
//
DNodeService.Client client = DNodeClient.get("localhost", testConfig.getInt(DNodeProperties.PORT));
try {
DeployAction deploy = new DeployAction();
deploy.setTablespace("tablespace1");
deploy.setDataURI(new File(DB_1 + ".1", "foo.db").toURI().toString());