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

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