public static DataMap bytesToDataMap(Map<String, String> headers, ByteString bytes) throws MimeTypeParseException, IOException
  {
    return getContentType(headers).getCodec().readMap(bytes);
  }
@Test(expectedExceptions = IOException.class)
  public void testInvalidJSONByteStringToDataMap() throws MimeTypeParseException, IOException
  {
    bytesToDataMap("application/json", ByteString.copy("helloWorld".getBytes()));
  }