@Test
void loadConfigFromResourceOrFile_whenResourceNotOnClassPath_usesFile() throws IOException, ConfigKeysNotRecognisedException {

    Builder builder = new Builder(new String[]{});
    ConfigManager configManager = builder.loadConfigFromResourceOrFile(ImmutableList.of("src/test/test-config-file.properties"), ImmutableSet.of(TestConfig.class))
            .build();
    Config<TestConfig> config = configManager.getConfig(TestConfig.class);
    assertThat(config.getValue(TestConfig.FOO).asInt()).isEqualTo(2);
    assertThat(config.getValue(TestConfig.BAR).asInt()).isEqualTo(1);
}