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");
}
if (message.isFault() == false) {
Assert.fail("scmp should be of type fault");