MockServletConfig config = new MockServletConfig();
config.setInitParameter(
HessianService.EVENT_BRIDGE_FACTORY_PROPERTY,
MockEventBridgeFactory.class.getName());
HessianService handler = new HessianService() {
@Override
protected void initCayenneStack(Map properties) {
this.domain = new DataDomain("test");
}
@Override
protected HttpSession getSession(boolean create) {
return new MockHttpSession();
}
};
handler.init(config);
assertEquals(MockEventBridgeFactory.class.getName(), handler
.getEventBridgeFactoryName());
}