@Test
public void testGetRequestsByStatus() throws AmbariException {

  List<Long> requestIds = new ArrayList<Long>();
  requestIds.add(requestId + 1);
  requestIds.add(requestId);
  populateActionDB(db, hostName, requestId, stageId);
  clusters.addHost("host2");
  populateActionDB(db, hostName, requestId + 1, stageId);
  List<Long> requestIdsResult =
    db.getRequestsByStatus(null, BaseRequest.DEFAULT_PAGE_SIZE, false);
  assertNotNull("List of request IDs is null", requestIdsResult);
  assertEquals("Request IDs not matches", requestIds, requestIdsResult);
}