@Test public void createCache() throws Exception {

  // get cache provider instance
  CacheProvider cacheProvider = CacheProvider.getInstance();
  Cache<DictionaryColumnUniqueIdentifier, Dictionary> dictionaryCache =
      cacheProvider.createCache(CacheType.FORWARD_DICTIONARY, "carbonStore");
  // assert that dictionary cache is an instance of Forward dictionary cache
  assertTrue(dictionaryCache instanceof ForwardDictionaryCache);
  assertFalse(dictionaryCache instanceof ReverseDictionaryCache);
  Cache<DictionaryColumnUniqueIdentifier, Dictionary> reverseDictionaryCache =
      cacheProvider.createCache(CacheType.REVERSE_DICTIONARY, "carbonStore");
  // assert that dictionary cache is an instance of Reverse dictionary cache
  assertTrue(reverseDictionaryCache instanceof ReverseDictionaryCache);
  assertFalse(reverseDictionaryCache instanceof ForwardDictionaryCache);
}