@Test public void testLRUCacheForMaxSize() throws Exception {

  // delete store path
  deleteStorePath();
  // mock get end offset method so that required size is greater than
  // available size limit
  new MockUp<CarbonDictionaryColumnMetaChunk>() {
    @Mock public long getEnd_offset() {
      return 123456789L;
    }
  };
  String columnIdentifier = columnIdentifiers[0];
  // prepare dictionary writer and write data
  prepareWriterAndWriteData(dataSet1, columnIdentifier);
  // create dictionary column unique identifier instance
  DictionaryColumnUniqueIdentifier dictionaryColumnUniqueIdentifier =
      createDictionaryColumnUniqueIdentifier(columnIdentifier);
  // get the reverse dictionary object
  Dictionary reverseDictionary = null;
  try {
    reverseDictionary = (Dictionary) reverseDictionaryCache.get(dictionaryColumnUniqueIdentifier);
  } catch (Exception e) {
    assertTrue(e instanceof CarbonUtilException);
  }
  assertTrue(null == reverseDictionary);
}