void createRestCache(int port) throws Exception {
rest = new Server(port);
Context ctx = new Context(rest, "/", Context.SESSIONS);
ctx.setInitParams(Collections.singletonMap("resteasy.resources", "org.infinispan.rest.Server"));
ctx.addEventListener(new ResteasyBootstrap());
ctx.addEventListener(new ServerBootstrap());
ctx.addServlet(HttpServletDispatcher.class, "/rest/*");
ServletContext servletContext = ctx.getServletContext();
ServerBootstrap.setCacheManager(servletContext, cacheManager);
rest.start();
restClient = new HttpClient();