### Question:
Cache { public String getCachePath (String dirName) { return CACHE_PATH + dirName + "/"; } protected  Cache(String path); static void init(String path); static Cache getInstance(); String getPath(); void createDirIfAbsent(String dirName); String getCachePath(String dirName); String getCacheFilePath(String filePath); void clear();  }### Answer:
@Test public void testGetCachePath () { Cache cache = new Cache("../temp/"); assertEquals("../temp/test2/", cache.getCachePath("test2")); assertEquals(true, cache.getCachePath("test").endsWith("/")); }