dir = DirectoryBuilder.newDirectoryInstance(cache, cache, cache, INDEX_NAME).chunkSize(BUFFER_SIZE).create();
long lastModifiedDate = dir.fileModified(fileName);
AssertJUnit.assertEquals(0L, lastModifiedDate);
Thread.sleep(1);
dir.touchFile(fileName);
AssertJUnit.assertEquals(lastModifiedDate, dir.fileModified(fileName));
} finally {
if (dir != null) dir.close();
}
}