AssertJUnit.assertNotNull(value);
AssertJUnit.assertTrue(value instanceof byte[]);
byte[] buffer = (byte[]) cache.get(existingChunkKey);
AssertJUnit.assertTrue(buffer.length != 0);
} else if (key instanceof FileCacheKey) {
FileCacheKey fileCacheKey = (FileCacheKey) key;
AssertJUnit.assertEquals(fileCacheKey.getIndexName(), INDEX_NAME);
String filename = fileCacheKey.getFileName();
Object value = cache.get(fileCacheKey);
AssertJUnit.assertNotNull(value);
AssertJUnit.assertTrue(value instanceof FileMetadata);
FileMetadata metadata = (FileMetadata) value;
long totalFileSize = metadata.getSize();