@Test
void loadPrefixedConfigItems_clashingNames() throws IOException, ConfigKeysNotRecognisedException {

    Builder builder = new Builder(new String[]{});
    ConfigManager configManager = builder.loadConfigFromResourceOrFile(
            ImmutableList.of("src/test/prefixes-test-config-file.properties"),
            ImmutableSet.of(TestConfig.class, TestConfigDummy.class))
            .build();
    Config<TestConfig> testConfig = configManager.getConfig(TestConfig.class);
    Config<TestConfig> prefixedConfig = testConfig.getPrefixedConfigItems("Prefix6");
    // Get values for prefixed config files.
    assertThat(prefixedConfig.getValue(FirstSubConfig.WOO).asInt()).isEqualTo(1);
    assertThat(prefixedConfig.getValue(SecondSubConfig.WOO).asInt()).isEqualTo(2);
}