private void parseRequestPathAndVerify(String requestPath, List<String> prefixesToRemove, String clusterName,
      RequestPath expected, JSONObject headers) {
    try {
      RestRequest restRequest = RestUtilsTest.createRestRequest(RestMethod.GET, requestPath, headers);
      RequestPath actual = RequestPath.parse(restRequest, prefixesToRemove, clusterName);
      assertEquals(
          "Unexpected result for testRequestPath(" + requestPath + ", " + prefixesToRemove + ", " + clusterName + ")",
          expected, actual);
    } catch (UnsupportedEncodingException | URISyntaxException | RestServiceException e) {
      throw new RuntimeException(e);
    }
  }
Form the request, call {@link RequestPath#parse}, and check the result.
@param requestPath the request path to supply
@param prefixesToRemove the prefix list to supply
@param clusterName the cluster name to supply
@param expected the expected {@link RequestPath}.
@param headers any associated headers as a {@link org.json.JSONObject}
ambry-api/src/test/java/com/github/ambry/rest/RequestPathTest.java