public void setProjectionDataMapSerializer(ProjectionDataMapSerializer projectionDataMapSerializer)
  {
    RestliRequestOptions existingRequestOptions =
        (_requestOptions == null) ? RestliRequestOptions.DEFAULT_OPTIONS : _requestOptions;

    // If the desired value is same as existing, this is a no-op.
    if (existingRequestOptions.getProjectionDataMapSerializer().equals(projectionDataMapSerializer))
    {
      return;
    }

    _requestOptions = new RestliRequestOptionsBuilder(existingRequestOptions)
        .setProjectionDataMapSerializer(projectionDataMapSerializer)
        .build();
  }
@Test
  public void testSetProjectionDataMapSerializer()
  {
    ProjectionDataMapSerializer customSerializer = (paramName, pathSpecs) -> new DataMap();
    GetRequest<TestRecord> getRequest = generateDummyRequestBuilder().build();
    getRequest.setProjectionDataMapSerializer(customSerializer);
    assertEquals(getRequest.getRequestOptions().getProjectionDataMapSerializer(), customSerializer);
  }