@Override
    public <T> T invoke(K key, EntryProcessor<K, V, T> entryProcessor, Object... arguments) throws EntryProcessorException {
        return cache.invoke(key, entryProcessor, arguments);
    }
@Test
    public void testInvoke() {
        cache.put(23, "value-23");
        cache.put(42, "value-42");

        String result = adapter.invoke(23, new ICacheReplaceEntryProcessor(), "value", "newValue");
        assertEquals("newValue-23", result);

        assertEquals("newValue-23", cache.get(23));
        assertEquals("value-42", cache.get(42));
    }