publishServer = server.newPublishServer(TestConstants.pubServiceName1);
SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
publishServer.register(10, 2, cbk);
Assert.assertEquals("PublishServer is not registered", true, publishServer.isRegistered());
SCPublishMessage publishMessage = new SCPublishMessage();
publishMessage.setMask(TestConstants.mask);
publishMessage.setData(new byte[128]);
int count = 10000;
for (int i = 0; i < count; i++) {
if (((i + 1) % 200) == 0)
testLogger.info("Publish message nr. " + (i + 1));
publishServer.publish(publishMessage);