}
@Test
public void testEachObject() throws Exception {
BufferUnpacker u = new MessagePack().createBufferUnpacker();
UnpackerIterator it = u.iterator();
for(int i=0; i < 50; i++) {
Value v = createComplexType();
BufferPacker pk = new MessagePack().createBufferPacker();
pk.write(v);
byte[] raw = pk.toByteArray();
//pk.reset();
u.feed(raw, 0, raw.length);
assertTrue(it.hasNext());
Value ov = it.next();
assertEquals(v, ov);
//assertFalse(it.hasNext());
}
}