### Question:
ParseFileController { public File getCacheFile(ParseFile.State state) { return new File(cachePath, state.name()); } ParseFileController(ParseHttpClient restClient, File cachePath); File getCacheFile(ParseFile.State state); boolean isDataAvailable(ParseFile.State state); void clearCache(); Task<ParseFile.State> saveAsync(
      final ParseFile.State state,
      final byte[] data,
      String sessionToken,
      ProgressCallback uploadProgressCallback,
      Task<Void> cancellationToken); Task<ParseFile.State> saveAsync(
      final ParseFile.State state,
      final File file,
      String sessionToken,
      ProgressCallback uploadProgressCallback,
      Task<Void> cancellationToken); Task<File> fetchAsync(
      final ParseFile.State state,
      @SuppressWarnings("UnusedParameters") String sessionToken,
      final ProgressCallback downloadProgressCallback,
      final Task<Void> cancellationToken);  }### Answer:
@Test public void testGetCacheFile() throws Exception { File root = temporaryFolder.getRoot(); ParseFileController controller = new ParseFileController(null, root); ParseFile.State state = new ParseFile.State.Builder().name("test_file").build(); File cacheFile = controller.getCacheFile(state); assertEquals(new File(root, "test_file"), cacheFile); }