@Test
    public void testGetCharset() {
        assertThat(MediaType.parse("text/plain").charset()).isNull();
        assertThat(MediaType.parse("text/plain; charset=utf-8").charset()).isEqualTo(UTF_8);
    }
Tests for {@link MediaType}.

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