@Override
    public void delete(Object o) throws CacheWriterException {
        long startNanos = Timer.nanos();
        try {
            delegate.get().delete(o);
        } finally {
            deleteProbe.recordValue(Timer.nanosElapsed(startNanos));
        }
    }
@Test
    public void delete() {
        Cache.Entry<Integer, String> entry = new CacheEntry<>(1, "peter");
        cacheWriter.delete(entry);

        verify(delegate).delete(entry);
        assertProbeCalledOnce("delete");
    }