assertEquals(3, outStages.size());
}
@Test
public void testManyStages() {
RoleCommandOrder rco = new RoleCommandOrder();
ClusterEntity entity = createDummyData();
ClusterImpl cluster = new ClusterImpl(entity, injector);
rco.initialize(cluster);
RoleGraph rg = new RoleGraph(rco);
long now = System.currentTimeMillis();
Stage stage = StageUtils.getATestStage(1, 1, "host1");
stage.addHostRoleExecutionCommand("host11", Role.SECONDARY_NAMENODE,
RoleCommand.START, new ServiceComponentHostStartEvent("SECONDARY_NAMENODE",