@Test
public void tryToGetInstanceWithConfigWithWrongTypeAtConfigPath() {

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