@Override
  public String getUri() {
    onEventComplete(Event.GetUri);
    return (uri == null) ? null : uri.toString();
  }
Create a MockRestRequest.
@param data the request metadata with the fields required.
@param requestContents contents of the request, if any. Can be null and can be added later via
                         {@link #addContent(ByteBuffer)}. Add a null {@link ByteBuffer} at the end to signify end
                         of content.
@throws IllegalArgumentException if the {@link RestMethod} required is not recognized.
@throws JSONException if there is an exception retrieving required fields.
@throws UnsupportedEncodingException if some parts of the URI are not in a format that can be decoded.
@throws URISyntaxException if there is a syntax error in the URI.
ambry-test-utils/src/main/java/com/github/ambry/rest/MockRestRequest.java