@Test
    public void testWithParametersIterable() {
        assertEquals(
                MediaType.parse("text/plain"),
                MediaType.parse("text/plain; a=1; a=2").withParameters("a", ImmutableSet.of()));
        assertEquals(
                MediaType.parse("text/plain; a=1"),
                MediaType.parse("text/plain").withParameters("a", ImmutableSet.of("1")));
        assertEquals(
                MediaType.parse("text/plain; a=1"),
                MediaType.parse("text/plain; a=1; a=2").withParameters("a", ImmutableSet.of("1")));
        assertEquals(
                MediaType.parse("text/plain; a=1; a=3"),
                MediaType.parse("text/plain; a=1; a=2").withParameters("a", ImmutableSet.of("1", "3")));
        assertEquals(
                MediaType.parse("text/plain; a=1; a=2; b=3; b=4"),
                MediaType.parse("text/plain; a=1; a=2").withParameters("b", ImmutableSet.of("3", "4")));
    }
Tests for {@link MediaType}.

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