FileCacheBuilder { public FileCacheBuilder setUserHome(File d) { this.userHome = d; return this; } FileCacheBuilder(Logger logger); FileCacheBuilder setUserHome(File d); FileCacheBuilder setUserHome(@Nullable String path); FileCache build();  }
@Test public void setUserHome() throws Exception { File userHome = temp.newFolder(); FileCache cache = new FileCacheBuilder(mock(Logger.class)).setUserHome(userHome).build(); assertThat(cache.getDir()).isDirectory().exists(); assertThat(cache.getDir().getName()).isEqualTo("cache"); assertThat(cache.getDir().getParentFile()).isEqualTo(userHome); }