public static DataMap convertToDataMap(Map<String, Object> queryParams)
  {
    return convertToDataMap(queryParams, Collections.<String, Class<?>>emptyMap(),
        AllProtocolVersions.RESTLI_PROTOCOL_1_0_0.getProtocolVersion(),
        RestLiProjectionDataMapSerializer.DEFAULT_SERIALIZER);
  }
@Test (expectedExceptions = IllegalArgumentException.class,
      expectedExceptionsMessageRegExp = "Map key '1' is not of type String")
  public void testNonStringKeyToDataMap()
  {
    Map<String, Object> queryParams = new HashMap<>();

    Map<Object, Object> hashMapParam = new HashMap<>();
    hashMapParam.put(1, "numeric key");

    queryParams.put("hashMapParam", hashMapParam);

    QueryParamsUtil.convertToDataMap(queryParams);
  }