@Override
    public String getInsecureEnvironmentVariableOrDefault(String key, String defaultValue) {
        for (EnvironmentVariable variable : this) {
            if (!variable.isSecure() && variable.getName().equalsIgnoreCase(key)) {
                return variable.getValue();
            }
        }
        return defaultValue;
    }
@Test
    void shouldGetOnlyInsecureValues() {
        EnvironmentVariables variables = new EnvironmentVariables(
                new EnvironmentVariable("key1", "value1", true),
                new EnvironmentVariable("key2", "value2")
        );

        assertThat(variables.getInsecureEnvironmentVariableOrDefault("key1", "def1")).isEqualTo("def1");
        assertThat(variables.getInsecureEnvironmentVariableOrDefault("key2", null)).isEqualTo("value2");
        assertThat(variables.getInsecureEnvironmentVariableOrDefault("key3", null)).isNull();
    }