@SuppressWarnings("Guava")
    private static FluentIterable<MediaType> getConstants() {
        return getConstantFields(MediaType.class).transform(input -> {
            try {
                return (MediaType) input.get(null);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        });
    }
Tests for {@link MediaType}.

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