@Test
public void offHeapCache() {

  final String key = "key", value = "value";
  final OffHeapByteBufferStore bufferStore = new OffHeapByteBufferStore(10000, 10);
  final Cache<String, String> cache = CacheBuilder.offHeapCache()
      .storage(bufferStore)
      .build();
  cache.put(key, value);
  assertEquals(value, cache.get(key));
  assertTrue(cache instanceof OffHeapCache);
}