EmbeddedCacheManager cacheManager = TestCacheManagerFactory.createClusteredCacheManager(config);
DistributedExecutorService des = null;
try {
Cache<Object, Object> cache = cacheManager.getCache();
ExecutorService service = new WithinThreadExecutor();
des = new DefaultExecutorService(cache, service);
Future<Integer> future = des.submit(new SimpleCallable());
Integer r = future.get();
assert r == 1;