@Test void getIfPresentIntegerIdDeletionLoggedInCache() { when(cache.getIfPresent(EntityKey.create("TestEntity", 123))).thenReturn(CacheHit.empty()); assertEquals(of(CacheHit.empty()), entityCache.getIfPresent(entityType, 123)); }
public Optional<CacheHit<Entity>> getIfPresent(EntityType entityType, Object id) { return getIfPresent(entityType, id, null); }
CombinedEntityCache { public Optional<CacheHit<Entity>> getIfPresent(EntityType entityType, Object id) { return getIfPresent(entityType, id, null); } }
CombinedEntityCache { public Optional<CacheHit<Entity>> getIfPresent(EntityType entityType, Object id) { return getIfPresent(entityType, id, null); } CombinedEntityCache(
      EntityHydration entityHydration, Cache<EntityKey, CacheHit<Map<String, Object>>> cache); }
CombinedEntityCache { public Optional<CacheHit<Entity>> getIfPresent(EntityType entityType, Object id) { return getIfPresent(entityType, id, null); } CombinedEntityCache(
      EntityHydration entityHydration, Cache<EntityKey, CacheHit<Map<String, Object>>> cache); void putDeletion(EntityKey entityKey); void evictAll(EntityType entityType); Optional<CacheHit<Entity>> getIfPresent(EntityType entityType, Object id); Optional<CacheHit<Entity>> getIfPresent(
      EntityType entityType, Object id, @Nullable @CheckForNull Fetch fetch); void put(Entity entity); void evict(Stream<EntityKey> entityKeys); }
CombinedEntityCache { public Optional<CacheHit<Entity>> getIfPresent(EntityType entityType, Object id) { return getIfPresent(entityType, id, null); } CombinedEntityCache(
      EntityHydration entityHydration, Cache<EntityKey, CacheHit<Map<String, Object>>> cache); void putDeletion(EntityKey entityKey); void evictAll(EntityType entityType); Optional<CacheHit<Entity>> getIfPresent(EntityType entityType, Object id); Optional<CacheHit<Entity>> getIfPresent(
      EntityType entityType, Object id, @Nullable @CheckForNull Fetch fetch); void put(Entity entity); void evict(Stream<EntityKey> entityKeys);  }