tool.addResource(clusterName, "resource", 10, "MasterSlave");
InstanceConfig config = new InstanceConfig("nodeConfig");
tool.addInstance(clusterName, config);
List<String> instances = tool.getInstancesInCluster(clusterName);
AssertJUnit.assertEquals(1, instances.size());
tool.dropInstance(clusterName, config);
IdealState idealState = new IdealState("idealState");
tool.setResourceIdealState(clusterName, "resource", idealState);
idealState = tool.getResourceIdealState(clusterName, "resource");
AssertJUnit.assertEquals(idealState.getId(), "idealState");