String expectedString = this.headKey.name() + " 0000000 00000 " + SCMPVersion.CURRENT + "\n";
OutputStream os = new ByteArrayOutputStream();
try {
encodeScmp.setIsReply(true);
coder.encode(os, encodeScmp);
} catch (Exception e) {
Assert.fail("Should not throw exception");
}
Assert.assertEquals(expectedString, os.toString());
}