@Bean
  public SonarUserHome provide(ScannerProperties scannerProps) {
    Path home = findSonarHome(scannerProps);
    LOG.debug("Sonar User Home: {}", home);
    return new SonarUserHome(home);
  }
@Test
  void should_consider_env_variable_over_user_home(@TempDir Path userHome, @TempDir Path sonarUserHomeFromEnv) {
    when(system.envVariable("SONAR_USER_HOME")).thenReturn(sonarUserHomeFromEnv.toString());
    when(system.property("user.home")).thenReturn(userHome.toString());

    var sonarUserHome = underTest.provide(new ScannerProperties(Map.of()));

    assertThat(sonarUserHome.getPath()).isEqualTo(sonarUserHomeFromEnv);
  }