// List<IdealState> idealStates = new ArrayList<IdealState>();
String[] resources = new String[]
{ "testResource1", "testResource2" };
List<IdealState> idealStates = setupIdealState(5, resources, 10, 1);
ResourceComputationStage stage = new ResourceComputationStage();
runStage(event, new ReadClusterDataStage());
runStage(event, stage);
Map<String, Resource> resourceMap = event
.getAttribute(AttributeName.RESOURCES.toString());
AssertJUnit.assertEquals(resources.length, resourceMap.size());