@Test
    public void testGetCharset_illegalCharset() {
        final MediaType mediaType = MediaType.parse("text/plain; charset=\"!@#$%^&*()\"");
        try {
            mediaType.charset();
            fail();
        } catch (IllegalCharsetNameException expected) {
        }
    }
Tests for {@link MediaType}.

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