### Question:
ParseKeyValueCache { static int size() { File[] files = getKeyValueCacheDir().listFiles(); if (files == null) { return 0; } return files.length; }    }### Answer:
@Test public void testGetSizeWithoutCacheDir() throws Exception { assertTrue(keyValueCacheDir.exists()); keyValueCacheDir.delete(); assertFalse(keyValueCacheDir.exists()); assertEquals(0, ParseKeyValueCache.size()); }
@Test public void testGetSizeWithoutCacheDir() { assertTrue(keyValueCacheDir.exists()); keyValueCacheDir.delete(); assertFalse(keyValueCacheDir.exists()); assertEquals(0, ParseKeyValueCache.size()); }