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

    assertThat(inputProperties).containsOnly(
      entry("sonar.scanner.foo", "value1"),
      entry("key2", "value2"));

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