### Question:
ClasspathConfigSource extends AbstractConfigSource implements ConfigSource,
                                                                           ParsableSource { @Override public Optional<String> mediaType() { return super.mediaType(); } ClasspathConfigSource(Builder builder); static ClasspathConfigSource create(Config metaConfig); static ClasspathConfigSource create(String resource); static Collection<? super ClasspathConfigSource> createAll(String resource); static List<ConfigSource> createAll(Config metaConfig); static Builder builder(); @Override Optional<Content> load(); @Override String toString(); @Override Optional<String> mediaType(); @Override Optional<ConfigParser> parser();  }### Answer:
@Test public void testGetMediaTypeSet() { ClasspathConfigSource configSource = ConfigSources.classpath("application.conf") .optional() .mediaType(TEST_MEDIA_TYPE) .build(); assertThat(configSource.mediaType(), is(Optional.of(TEST_MEDIA_TYPE))); }
@Test public void testGetMediaTypeUnknown() { ClasspathConfigSource configSource = (ClasspathConfigSource) ConfigSources.classpath("application.unknown") .optional() .build(); assertThat(configSource.mediaType(), is(Optional.empty())); }
@Test public void testLoadExists() { ConfigSource configSource = ConfigSources.classpath("io/helidon/config/application.conf") .mediaType("application/hocon") .build(); }
@Test public void testBuilderWithMediaType() { ConfigSource configSource = ConfigSources.classpath("io/helidon/config/application.conf") .mediaType("application/hocon") .build(); assertThat(configSource, notNullValue()); }