static URI buildCriteriaURI(ResourceContextImpl resourceContext, RecordTemplate criteria, String batchParameterName, URI uri)
  {
    DataList criteriaList = new DataList(1);
    criteriaList.add(criteria.data());
    return URIParamUtils.replaceQueryParam(uri,
                                           batchParameterName,
                                           criteriaList,
                                           resourceContext.getParameters(),
                                           resourceContext.getRestliProtocolVersion());
  }
@Test(dataProvider = "build_uri_test_cases")
  public void testBuildCriteriaURI(ResourceContextImpl resourceContext,
                                   RecordTemplate criteria,
                                   String batchParameterName,
                                   URI uri,
                                   URI expectedURI)
  {
    URI generatedURI = BatchFinderResponseBuilder.buildCriteriaURI(resourceContext, criteria, batchParameterName, uri);
    Assert.assertEquals(generatedURI.toString(), expectedURI.toString());
  }