@Test
void loadConfigFromResource_whenUsingAlternateArgThenActualCommandLineTakesPriority() throws ConfigKeysNotRecognisedException {

    {
        ConfigManager cm1 = new ConfigManager.Builder(new String[]{"-a:test-config-resource.properties"}).withConfig(TestConfig.class).build();
        assertThat(cm1.getConfig(TestConfig.class).getValue(TestConfig.FOO).asInt()).isEqualTo(1);
    }
    {
        ConfigManager cm2 = new ConfigManager.Builder(new String[]{"-a:test-config-resource.properties", "-OTestConfig.FOO=2"}).withConfig(TestConfig.class).build();
        assertThat(cm2.getConfig(TestConfig.class).getValue(TestConfig.FOO).asInt()).isEqualTo(2);
    }
}