String requestString = TestUtil.getSCMPString(headKey, header, body);
byte[] buffer = requestString.getBytes();
InputStream is = new ByteArrayInputStream(buffer);
IEncoderDecoder coder = coderFactory.createEncoderDecoder(new SCMPPart(SCMPVersion.CURRENT));
SCMPMessage message = null;
try {
message = (SCMPMessage) coder.decode(is);
} catch (Exception e) {
Assert.fail("Should not throw exception");
}
verifySCMP(message);
bodyType = SCMPBodyType.TEXT;
header = "bty=" + bodyType.getValue() + "\n" + "msn=" + msgSequenceNr + "\n" + "mty=" + msgType.getValue() + "\n";
requestString = TestUtil.getSCMPString(headKey, header, body);
buffer = requestString.getBytes();
is = new ByteArrayInputStream(buffer);
coder = coderFactory.createEncoderDecoder(new SCMPPart(SCMPVersion.CURRENT));
message = null;
try {
message = (SCMPMessage) coder.decode(is);
} catch (Exception e) {