}
@Test
public void testManyStages() {
RoleCommandOrder.initialize();
RoleCommandOrder rco = new RoleCommandOrder();
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",