@Test
public void testGetStagesInProgress() throws AmbariException {

  List<Stage> stages = new ArrayList<Stage>();
  stages.add(createStubStage(hostName, requestId, stageId));
  stages.add(createStubStage(hostName, requestId, stageId + 1));
  Request request = new Request(stages, clusters);
  db.persistActions(request);
  assertEquals(2, stages.size());
}