public static Path getCacheHome() {
    return getCacheHome(System.getProperties(), System.getenv());
  }
@Test
  public void testGetCacheHome_windows() {
    Properties fakeProperties = new Properties();
    fakeProperties.setProperty("user.home", "nonexistent");
    fakeProperties.setProperty("os.name", "os is WiNdOwS");

    Map<String, String> fakeEnvironment = ImmutableMap.of("LOCALAPPDATA", fakeCacheHome);

    Assert.assertEquals(
        Paths.get(fakeCacheHome).resolve("Google").resolve("Jib").resolve("Cache"),
        XdgDirectories.getCacheHome(fakeProperties, fakeEnvironment));
  }