ImcacheCache implements org.springframework.cache.Cache { public ValueWrapper get(Object key) { if (key == null) { return null; } final Object value = cache.get(key); return value != null ? new SimpleValueWrapper(value) : null; } @SuppressWarnings("unchecked")  ImcacheCache(final Cache<Object, Object> cache); String getName(); Object getNativeCache(); ValueWrapper get(Object key); void put(Object key, Object value); void evict(Object key); void clear(); @SuppressWarnings("unchecked") T get(Object key, Class<T> clazz);  }
@Test public void get() { cache.put(1, 1); assertEquals(new SimpleValueWrapper(1).get(), imcache.get(1).get()); }
@Test public void getKeyNull() { assertEquals(null, imcache.get(null)); }
@Test public void getWithClassKeyNull() { assertTrue(null == imcache.get(null, Integer.class)); }