@Test
public void build() {

  Cache<Object, Object> cache = CacheBuilder.heapCache()
      .cacheLoader(BaseCacheBuilder.DEFAULT_CACHE_LOADER)
      .name("my-heap-cache").expiryUnit(TimeUnit.DAYS).expiry(1)
      .evictionListener(BaseCacheBuilder.DEFAULT_EVICTION_LISTENER)
      .indexHandler(DummyIndexHandler.getInstance())
      .addIndex("age", IndexType.RANGE_INDEX).capacity(1000).build();
  assertTrue(cache instanceof SearchableCache);
  assertTrue(cache instanceof HeapCache);
}