@Test // reflection
    public void testCreate_useConstants() throws Exception {
        for (MediaType constant : getConstants()) {
            assertSame(
                    constant,
                    MediaType.create(constant.type(), constant.subtype())
                             .withParameters(constant.parameters()));
        }
    }
Tests for {@link MediaType}.

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