@Test
public void testPersist_noStages() throws AmbariException {

  ActionManager actionManager = createStrictMock(ActionManager.class);
  RequestFactory requestFactory = createStrictMock(RequestFactory.class);
  // no expectations due to empty stage list
  replay(actionManager, requestFactory);
  RequestStageContainer requestStages = new RequestStageContainer(1L, null, requestFactory, actionManager);
  requestStages.persist();
  verify(actionManager, requestFactory);
}