@BeforeClass public static void setupTestClass() throws Exception { handler = new DummyHandler(); service = new DummyService(0, handler); service.startAndWait(); port = service.getBindAddress().getPort(); host = service.getBindAddress().getHostName(); clusterStoreService.getView(cluster.getAccount()).writeCluster(cluster); clusterStoreService.getSystemView().writeNode(Entities.ClusterExample.NODE1); clusterStoreService.getSystemView().writeNode(Entities.ClusterExample.NODE2); }