localCacheManager.getCache(REMOTE_CACHE);
restServer = RestTestingUtil.startRestServer(localCacheManager);
RestStoreConfigurationBuilder storeConfigurationBuilder = TestCacheManagerFactory.getDefaultCacheConfiguration(false).persistence()
.addStore(RestStoreConfigurationBuilder.class);
storeConfigurationBuilder.host(restServer.getHost()).port(restServer.getPort()).path("/rest/" + REMOTE_CACHE);
storeConfigurationBuilder.connectionPool().maxTotalConnections(10).maxConnectionsPerHost(10);
storeConfigurationBuilder.validate();
RestStore restStore = new RestStore();
restStore.init(new DummyInitializationContext(storeConfigurationBuilder.create(), getCache(), getMarshaller(),
new ByteBufferFactoryImpl(), new MarshalledEntryFactoryImpl(getMarshaller())));