@Test
void loadConfigFromEnvVarsSingleClass() throws Exception {

    ConfigManager.Builder builder = new ConfigManager.Builder(new String[]{});
    ConfigManager configManager = builder.loadConfigFromEnvironmentVariables(
            ImmutableMap.of("FOO", "1", "BAR", "2"), ImmutableSet.of(TestConfig.class)
    ).build();
    Config<TestConfig> config = configManager.getConfig(TestConfig.class);
    assertThat(config.getValue(TestConfig.FOO).asInt()).isEqualTo(1);
    assertThat(config.getValue(TestConfig.BAR).asInt()).isEqualTo(2);
}