engine.addChild(host);
StandardContext context = new StandardContext();
context.setName("test");
host.addChild(context);
DistributableSessionManager<?> mgr = new DistributableSessionManager<OutgoingDistributableSessionData>(new MockDistributedCacheManagerFactory(), context, SessionTestUtil.createWebMetaData(10), new ContextClassResolver());
context.setManager(mgr);
mgr.start();
mgr.getReplicationConfig().setReplicationGranularity(ReplicationGranularity.SESSION);
ClusteredSession<?> sess = (ClusteredSession<?>) mgr.createEmptySession();