private long getRequestId(RequestStatus requestStatus) {
    assertEquals(1, requestStatus.getAssociatedResources().size());
    Resource r = requestStatus.getAssociatedResources().iterator().next();
    String id = r.getPropertyValue("Upgrade/request_id").toString();
    return Long.parseLong(id);
  }
Obtain request id from the {@code RequestStatus}

@param requestStatus reqult of the {@code createResources}
@return id of the request
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java