DimeInputBuffer buff = messageBuffer(TestData.EMPTY_MESSAGE);
assertTrue("Initial message", buff.nextMessage());
assertTrue("Initial part", buff.nextPart());
assertEquals("Wrong offset", DimeCommon.HEADER_SIZE, buff.getOffset());
assertEquals("Wrong limit", DimeCommon.HEADER_SIZE, buff.getLimit());
assertFalse("No data in message", buff.require(1));
assertFalse("No more parts in message", buff.nextPart());
assertFalse("No more messages", buff.nextMessage());
}
public void testBadVersionMessage() throws Exception {