@Test
    public void testWithParameters_invalidAttribute() {
        final MediaType mediaType = MediaType.parse("text/plain");
        final ImmutableListMultimap<String, String> parameters =
                ImmutableListMultimap.of("a", "1", "@", "2", "b", "3");
        try {
            mediaType.withParameters(parameters.asMap());
            fail();
        } catch (IllegalArgumentException expected) {
        }
    }
Tests for {@link MediaType}.

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