@Test
    public void wellDefinedUpstreamMediaTypes() {
        getConstants(com.google.common.net.MediaType.class).forEach(upstreamMediaType -> {
            // If upstreamMediaType is "well-known" in armeria, the same instance will be returned
            assertThat(MediaType.parse(upstreamMediaType.toString()))
                    .as("MediaType not well-defined for (%s)", upstreamMediaType.toString())
                    .isSameAs(MediaType.parse(upstreamMediaType.toString()));
        });
    }
Tests for {@link MediaType}.

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