@Test
public void testNames() {
RetryCache cache = mock(RetryCache.class);
when(cache.getCacheName()).thenReturn(cacheName);
RetryCacheMetrics metrics = RetryCacheMetrics.create(cache);
metrics.incrCacheHit();
metrics.incrCacheCleared();
metrics.incrCacheCleared();
metrics.incrCacheUpdated();
metrics.incrCacheUpdated();
metrics.incrCacheUpdated();
checkMetrics(1, 2, 3);
}