@Test
public void t298_register() throws Exception {
server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
server.startListener();
SCPublishServer publishServer1 = server.newPublishServer(TestConstants.pubServiceName1);
SCPublishServerCallback cbk1 = new PubSrvCallback(publishServer1);
publishServer1.register(1, 1, cbk1);
Assert.assertEquals("SessionServer is not registered", true, publishServer1.isRegistered());
SCPublishServer publishServer2 = server.newPublishServer(TestConstants.pubServiceName2);
SCPublishServerCallback cbk2 = new PubSrvCallback(publishServer2);
publishServer2.register(1, 1, cbk2);
Assert.assertEquals("SessionServer is not registered", true, publishServer2.isRegistered());
publishServer1.deregister();
publishServer2.deregister();