@Test
    public void testToString() {
        assertEquals("text/plain", MediaType.create("text", "plain").toString());
        assertEquals(
                "text/plain; something=\"cr@zy\"; something-else=\"crazy with spaces\"",
                MediaType.create("text", "plain")
                         .withParameter("something", "cr@zy")
                         .withParameter("something-else", "crazy with spaces")
                         .toString());
    }
Tests for {@link MediaType}.

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