private <T> List<T> reverse(List<T> list) {
    List<T> result = new ArrayList<>(list);

    Collections.reverse(result);

    return result;
  }
Tests getting requests which are fully COMPLETED out the database. This
will test for partial completions as well.

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