@Test
    public void testWithCharset() {
        assertEquals(
                MediaType.parse("text/plain; charset=utf-8"),
                MediaType.parse("text/plain").withCharset(UTF_8));
        assertEquals(
                MediaType.parse("text/plain; charset=utf-8"),
                MediaType.parse("text/plain; charset=utf-16").withCharset(UTF_8));
    }
Tests for {@link MediaType}.

@author Gregory Kick
core/src/test/java/com/linecorp/armeria/common/MediaTypeTest.java