EventsCache { public void put(final EventsCacheKey key, final EventsCacheValue value) { if (!eventsLoadingCache.asMap().containsKey(key)) { logger.finest("Putting new value in events cache for key " + key + " : " + value); eventsLoadingCache.asMap().put(key, value); } else { logger.finest("Not putting new value in events cache for key " + key + " . it already exists."); } } 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 testPut() throws Exception { }