public static void processEnvVariables(Map<String, String> inputProperties) {
    processEnvVariables(inputProperties, System.getenv());
  }
@Test
  void throwIfInvalidFormat() {
    var inputProperties = new HashMap<String, String>();
    var env = Map.of("SONAR_SCANNER_JSON_PARAMS", "{garbage");
    var thrown = assertThrows(IllegalArgumentException.class, () -> EnvironmentConfig.processEnvVariables(inputProperties, env));

    assertThat(thrown).hasMessage("Failed to parse JSON properties from environment variable 'SONAR_SCANNER_JSON_PARAMS'");
  }