public static DataMap bytesToDataMap(Map<String, String> headers, ByteString bytes) throws MimeTypeParseException, IOException
  {
    return getContentType(headers).getCodec().readMap(bytes);
  }
@Test(expectedExceptions = MimeTypeParseException.class)
  public void testByteStringToDataMapWithNonParsableContentType() throws MimeTypeParseException, IOException
  {
    DataMap dataMap = createTestDataMap();
    ByteString byteString = ByteString.copy(JACKSON_DATA_CODEC.mapToBytes(dataMap));
    bytesToDataMap("foo=bar", byteString);
  }