*/
@Test
public void t01_GroupCall() throws Exception {
SCMPClnExecuteCall executeCall = new SCMPClnExecuteCall(this.requester, TestConstants.sesServerName1, this.sessionId);
executeCall.setMessageInfo(TestConstants.echoCmd);
ISCMPCall groupCall = executeCall.openGroup();
TestCallback cbk = new TestCallback(true);
groupCall.invoke(cbk, 3000);
TestUtil.checkReply(cbk.getMessageSync(3000));
for (int i = 0; i < TestConstants.pangram.length(); i++) {
cbk = new TestCallback(true);
groupCall.setRequestBody(TestConstants.pangram.subSequence(i, i + 1));
groupCall.invoke(cbk, 3000);
TestUtil.checkReply(cbk.getMessageSync(3000));
}
groupCall.closeGroup(cbk, 3000); // send REQ (no body content)
SCMPMessage res = cbk.getMessageSync(3000);
Assert.assertEquals(TestConstants.pangram, res.getBody());
Assert.assertNotNull(res.getMessageSequenceNr());
Assert.assertEquals(SCMPBodyType.TEXT.getValue(), res.getHeader(SCMPHeaderAttributeKey.BODY_TYPE));