@Override
    public Map<String, String> getAll() {
        return flags.values().stream().collect(Collectors.toMap(flag -> flag.name, flag -> flag.value));
    }
@Test
    void testEnvironmentVariablePrefix() throws IOException {
        FeatureFlags flags = create(EMPTY, EMPTY, EMPTY, Map.of(
                "wrong prefix", ENVIRONMENT_VARIABLE_VALUE,
                PREFIX_ENVIRONMENT_VARIABLE + FEATURE_1, ENVIRONMENT_VARIABLE_VALUE));

        assertThat(flags.getAll()).isEqualTo(Map.of(FEATURE_1, ENVIRONMENT_VARIABLE_VALUE));
    }