static RestRequest createRestRequest(RestMethod restMethod, String uri)
      throws UnsupportedEncodingException, URISyntaxException {
    JSONObject request = new JSONObject();
    request.put(MockRestRequest.REST_METHOD_KEY, restMethod.name());
    request.put(MockRestRequest.URI_KEY, uri);
    return new MockRestRequest(request, null);
  }
Test to make sure {@link HostLevelThrottler#shouldThrottle(RestRequest)} on hardware usage.
ambry-commons/src/test/java/com/github/ambry/commons/HostLevelThrottlerTest.java