public static String keyToString(Object key,
                                   URLEscaper.Escaping escaping,
                                   UriComponent.Type componentType,
                                   boolean full,
                                   ProtocolVersion version)
  {
    if (version.compareTo(AllProtocolVersions.RESTLI_PROTOCOL_2_0_0.getProtocolVersion()) >= 0)
    {
      return keyToStringV2(key, escaping, componentType, full);
    }
    else
    {
      return keyToStringV1(key, escaping, full);
    }
  }
@Test(dataProvider = TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "longKey")
  public void testLongKeyToString(ProtocolVersion version, String expected)
  {
    Long longKey = 6L;
    String longKeyString = URIParamUtils.keyToString(longKey, NO_ESCAPING, null, true, version);
    Assert.assertEquals(longKeyString, expected);
  }