actx.registerShutdownHook();
Dempsy dempsy = (Dempsy)actx.getBean("dempsy");
assertNotNull(dempsy);
Dempsy.Application.Cluster cluster = dempsy.getCluster(new ClusterId("test-app", "test-cluster0"));
assertNull(cluster);
cluster = dempsy.getCluster(new ClusterId("test-app", "test-cluster1"));
assertNull(cluster);
cluster = dempsy.getCluster(new ClusterId("test-app", "test-cluster2"));
assertNotNull(cluster);
assertEquals(1,cluster.getNodes().size());
cluster = dempsy.getCluster(new ClusterId("test-app", "test-cluster3"));
assertNull(cluster);
cluster = dempsy.getCluster(new ClusterId("test-app", "test-cluster4"));
assertNull(cluster);
actx.stop();
actx.destroy();
}