public static String pickBestEncoding(String acceptHeader, Set<String> customMimeTypesSupported)
  {
    return pickBestEncoding(acceptHeader, null, customMimeTypesSupported);
  }
@Test
  public void testPickBestEncodingWithSupportedMimeTypes()
  {
    Assert.assertEquals(RestUtils.pickBestEncoding(PSON_TYPE_HEADER_WITH_VALID_PARAMS_JSON, Arrays.asList(JSON_HEADER),Collections.emptySet()), JSON_HEADER);
    Assert.assertEquals(RestUtils.pickBestEncoding(PSON_TYPE_HEADER_WITH_VALID_PARAMS_JSON, Arrays.asList(), Collections.emptySet()), PSON_HEADER);
  }