@Test
public void testParse() throws Exception {

    final ContentType contentType = ContentType.parse("text/plain; charset=\"ascii\"");
    Assert.assertEquals("text/plain", contentType.getMimeType());
    Assert.assertEquals(StandardCharsets.US_ASCII, contentType.getCharset());
    Assert.assertEquals("text/plain; charset=ascii", contentType.toString());
}