public final TemporaryFolder tmpDir = new TemporaryFolder();
private final Map<String, String> properties = GUtil.map("prop", "value", "prop2", "other-value");
@Test
public void cacheIsInvalidWhenCacheDirDoesNotExist() {
TestFile emptyDir = tmpDir.getDir().file("dir");
emptyDir.assertDoesNotExist();
DefaultPersistentDirectoryCache cache = new DefaultPersistentDirectoryCache(emptyDir, CacheUsage.ON, properties);
assertFalse(cache.isValid());
emptyDir.assertIsDir();
}