* Expectation: passes
*/
@Test
public void t25_noDataInterval() throws Exception {
publishService = client.newPublishService(TestConstants.pubServiceName1);
SCSubscribeMessage subMsgRequest = new SCSubscribeMessage(TestConstants.pangram);
subMsgRequest.setDataLength(TestConstants.pangram.length());
SCSubscribeMessage subMsgResponse = null;
subMsgRequest.setMask(TestConstants.mask);
subMsgRequest.setSessionInfo(TestConstants.doNothingCmd);
subMsgRequest.setNoDataIntervalSeconds(10);
msgCallback = new MsgCallback(publishService);
subMsgResponse = publishService.subscribe(subMsgRequest, msgCallback);
Assert.assertNotNull("the session ID is null", publishService.getSessionId());
Assert.assertEquals("message body is not the same length", subMsgRequest.getDataLength(), subMsgResponse.getDataLength());
Assert.assertEquals("compression is not the same", subMsgRequest.isCompressed(), subMsgResponse.isCompressed());
Assert.assertTrue("is not subscribed", publishService.isSubscribed());
publishService.unsubscribe();
Assert.assertNull("the session ID is not null", publishService.getSessionId());
}