@Test
public void build() {

  OffHeapByteBufferStore bufferStore = new OffHeapByteBufferStore(8388608, 10);
  Cache<Object, Object> cache = CacheBuilder.versionedOffHeapCache().storage(bufferStore)
      .cacheLoader(BaseCacheBuilder.DEFAULT_CACHE_LOADER)
      .evictionListener(BaseCacheBuilder.DEFAULT_EVICTION_LISTENER)
      .indexHandler(DummyIndexHandler.getInstance())
      .addIndex("age", IndexType.RANGE_INDEX).serializer(BaseCacheBuilder.DEFAULT_SERIALIZER)
      .bufferCleanerPeriod(100).bufferCleanerThreshold(0.6f).concurrencyLevel(10)
      .evictionPeriod(100).build();
  assertTrue(cache instanceof SearchableCache);
  assertTrue(cache instanceof VersionedOffHeapCache);
}