NinjaCache { public boolean safeDelete(String key) { return cache.safeDelete(key); } @Inject  NinjaCache(Cache cache); void add(String key, Object value, String expiration); boolean safeAdd(String key, Object value, String expiration); void add(String key, Object value); void set(String key, Object value, String expiration); boolean safeSet(String key, Object value, String expiration); void set(String key, Object value); void replace(String key, Object value, String expiration); boolean safeReplace(String key, Object value, String expiration); void replace(String key, Object value); long incr(String key, int by); long incr(String key); long decr(String key, int by); long decr(String key); Object get(String key); Map<String, Object> get(String... key); void delete(String key); boolean safeDelete(String key); void clear(); @SuppressWarnings("unchecked") T get(String key, Class<T> clazz);  }
@Test public void testSafeDelete() { String key = "key"; ninjaCache.safeDelete(key); verify(cache).safeDelete(key); }