### Question:
InternalDefaultConfigurationLoader { public @Nonnull Properties load(ClassLoader loader, String configurationName) { try (InputStream resourceAsStream = loader .getResourceAsStream("META-INF/" + configurationName + ".properties")) { if (resourceAsStream == null) { throw new ConfigurationNotFoundException("the configuration " + configurationName + " could not be found with the ClassLoader " + loader); } Properties properties = new Properties(); properties.load(resourceAsStream); return properties; } catch (IOException e) { throw new IllegalStateException(e); } }  @Nonnull Properties load(ClassLoader loader, String configurationName);  }### Answer:
@Test void test() { Properties properties = this.loader.load(this.classLoader, "configuration.test.config"); assertThat(properties, is(notNullValue())); assertThat(properties, hasEntry("test.key", "hello world")); assertThat(properties.size(), is(1)); }
@Test void testConfigurationNotFoundException() { assertThrows(ConfigurationNotFoundException.class, () -> this.loader.load(this.classLoader, "does.not.exists.config")); }