CachePopulatorExample extends ConcurrentCachePopulator<String, String> { public static void example() { Cache<String, String> cache = CacheBuilder.heapCache().build(); CachePopulatorExample populatorExample = new CachePopulatorExample(cache); populatorExample.pupulate(); System.out.println(cache.get("0")); } CachePopulatorExample(Cache<String, String> cache); static void example(); static void main(String[] args); List<CacheEntry<String, String>> loadEntries();  }
@Test public void example() { CachePopulatorExample.example(); }