int offset = 0;
while (largeRequest.hasNext()) {
SCMPMessage message = largeRequest.getNext();
SCMPOffsetPart responsePart = new SCMPOffsetPart(largeScmp, offset, sb.length());
offset += responsePart.getBodyLength();
Assert.assertEquals(responsePart.getBody().toString(), message.getBody().toString());
Assert.assertEquals(responsePart.getBodyLength(), message.getBodyLength());
Assert.assertEquals(responsePart.getBodyOffset(), message.getBodyOffset());
Assert.assertEquals(responsePart.getBodyType(), message.getBodyType());
}
SCMPOffsetPart firstPart = new SCMPOffsetPart(largeScmp, 0, sb.length());
SCMPMessage message = largeRequest.getFirst();
Assert.assertEquals(firstPart.getBody().toString(), message.getBody().toString());
Assert.assertEquals(firstPart.getBodyLength(), message.getBodyLength());
Assert.assertEquals(firstPart.getBodyOffset(), message.getBodyOffset());
Assert.assertEquals(firstPart.getBodyType(), message.getBodyType());
}