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

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

    assertThat(logTester.logs(Level.WARN)).containsOnly("Ignoring environment variable 'SONARQUBE_SCANNER_PARAMS' because 'SONAR_SCANNER_JSON_PARAMS' is set");
  }