private void populateActionDB(ActionDBAccessor db, String hostname,
      long requestId, long stageId, boolean retryAllowed) throws AmbariException {
    Stage s = createStubStage(hostname, requestId, stageId, retryAllowed);
    List<Stage> stages = new ArrayList<>();
    stages.add(s);
    Request request = new Request(stages, "", clusters);
    db.persistActions(request);
  }
Tests that entities created int he {@link ActionDBAccessor} can be
retrieved with their IDs intact. EclipseLink seems to execute the
{@link NamedQuery} but then use its cached entities to fill in the data.

@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionDBAccessorImpl.java