@Test
void environmentVariableMatchesEnumInSubclass() throws Exception {

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