* Description: Encode PRS test<br>
* Expectation: passes
*/
@Test
public void t24_EncodePRSTest() {
IEncoderDecoder coder = coderFactory.createEncoderDecoder(new SCMPPart());
this.headKey = SCMPHeaderKey.PRS;
String header = "msn=" + msgSequenceNr + "\n" + "bty=" + bodyType.getValue() + "\n" + "mty=" + msgType.getValue() + "\n";
String expectedString = TestUtil.getSCMPString(headKey, header, body);
SCMPMessage encodeRes = new SCMPPart();
encodeRes.setIsReply(true);
encodeRes.setHeader(encodeScmp);
encodeRes.setBody(body.getBytes());
OutputStream os = new ByteArrayOutputStream();
try {
coder.encode(os, encodeRes);
} catch (Exception e) {