private RestRequest createRestRequest() throws Exception {
    JSONObject data = new JSONObject();
    data.put(MockRestRequest.REST_METHOD_KEY, RestMethod.GET.name());
    data.put(MockRestRequest.URI_KEY, Operations.GET_CLUSTER_MAP_SNAPSHOT);
    return new MockRestRequest(data, null);
  }
Creates a {@link RestRequest} that requests for a snapshot of the cluster map.
@return a {@link RestRequest} that requests for a snapshot of the cluster map.
@throws Exception
ambry-frontend/src/test/java/com/github/ambry/frontend/GetClusterMapSnapshotHandlerTest.java