withCacheManager(new CacheManagerCallable(
TestCacheManagerFactory.createCacheManager(
hotRodCacheConfiguration())) {
@Override
public void call() {
HotRodServer hotrodServer = TestHelper.startHotRodServer(cm);
try {
withRemoteCacheManager(new RemoteCacheManagerCallable(
new RemoteCacheManager("localhost", hotrodServer.getPort())) {
@Override
public void call() {
RemoteCache remoteCache = rcm.getCache();
remoteCache.put("k","v");
assertEquals("v", remoteCache.get("k"));