@Test
public void tryToGetInstanceWithMissingConfigAtConfigPath() {

    final Config config = ConfigFactory.parseMap(Collections.singletonMap("foo", "bar"));
    assertThatExceptionOfType(DittoConfigError.class)
            .isThrownBy(() -> DefaultScopedConfig.newInstance(config, KNOWN_CONFIG_PATH))
            .withMessage("Failed to get nested Config at <%s>!", KNOWN_CONFIG_PATH)
            .withCauseInstanceOf(ConfigException.Missing.class);
}