public void testInit() {
Packet packet = createTestPacket(100);
assertEquals( 100, packet.capacity() );
assertEquals( 0, packet.position());
assertEquals( 100, packet.limit() );
assertEquals( 100, packet.remaining() );
assertTrue( packet.hasRemaining() );
}
public void testPosition() {
Packet packet = createTestPacket(100);