public static void processEnvVariables(Map<String, String> inputProperties) {
    processEnvVariables(inputProperties, System.getenv());
  }
@Test
  void jsonEnvVariablesShouldNotOverrideInputProperties() {
    var inputProperties = new HashMap<String, String>(Map.of("key1", "value1", "key3", "value3"));
    EnvironmentConfig.processEnvVariables(inputProperties,
      Map.of("SONAR_SCANNER_JSON_PARAMS",
        "{\"key1\":\"should not override\", \"key2\":\"value2\"}"));

    assertThat(inputProperties).containsOnly(
      entry("key1", "value1"),
      entry("key2", "value2"),
      entry("key3", "value3"));

    assertThat(logTester.logs(Level.WARN)).containsOnly("Ignoring property 'key1' from env variable 'SONAR_SCANNER_JSON_PARAMS' because it is already defined");
  }