public static Path getConfigHome() {
    return getConfigHome(System.getProperties(), System.getenv());
  }
@Test
  public void testGetConfigHome_mac() throws IOException {
    Path libraryApplicationSupport = Paths.get(fakeConfigHome, "Library", "Preferences");
    Files.createDirectories(libraryApplicationSupport);

    Properties fakeProperties = new Properties();
    fakeProperties.setProperty("user.home", fakeConfigHome);
    fakeProperties.setProperty("os.name", "os is mAc or DaRwIn");

    Assert.assertEquals(
        libraryApplicationSupport.resolve("Google").resolve("Jib"),
        XdgDirectories.getConfigHome(fakeProperties, Collections.emptyMap()));
  }