@Test
public void t198_register() throws Exception {
server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_PUB_SRV_TCP, ConnectionType.NETTY_TCP);
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.sesServiceName2);
SCPublishServerCallback cbk2 = new PubSrvCallback(publishServer2);
publishServer2.register(1, 1, cbk2);
Assert.assertEquals("SessionServer is not registered", true, publishServer2.isRegistered());
publishServer1.deregister();
publishServer2.deregister();