EventsCache { public EventsCacheValue getIfExists(final EventsCacheKey key) { logger.finest("Retrieving events cache value for entry " + key + " if exists"); return eventsLoadingCache.getIfPresent(key); } EventsCache(final Admin admin); void setCacheExpirationPeriod(int cacheExpirationPeriod); void setCacheExpirationTimeunit(TimeUnit cacheExpirationTimeunit); void refresh(final EventsCacheKey key); EventsCacheValue get(final EventsCacheKey key); EventsCacheValue getIfExists(final EventsCacheKey key); void put(final EventsCacheKey key, final EventsCacheValue value); void add(final EventsCacheKey key, final DeploymentEvent event);  }
@Test public void testGetIfExists() throws Exception { }