private RestRequest getRestRequest(JSONObject headers, String path, byte[] requestBody)
      throws UnsupportedEncodingException, URISyntaxException, RestServiceException {
    RestRequest request = FrontendRestRequestServiceTest.createRestRequest(RestMethod.PUT, path, headers,
        new LinkedList<>(Arrays.asList(ByteBuffer.wrap(requestBody), null)));
    request.setArg(RestUtils.InternalKeys.REQUEST_PATH,
        RequestPath.parse(request, frontendConfig.pathPrefixesToRemove, CLUSTER_NAME));
    return request;
  }
Method to easily create a PUT {@link RestRequest}. This will set {@link RestUtils.InternalKeys#REQUEST_PATH} to a
valid {@link RequestPath} object.
@param headers any associated headers as a {@link JSONObject}.
@param path the path for the request.
@param requestBody the body of the request.
@return A {@link RestRequest} object that defines the request required by the input.
ambry-frontend/src/test/java/com/github/ambry/frontend/NamedBlobPutHandlerTest.java