byte[] existingData = new byte[] { -1, -1 };
Buffer existingDataOffsetLengthBitsNotAligned = new Buffer(existingData, 4, 10, false);
assertEquals(2, existingDataOffsetLengthBitsNotAligned.size());
assertEquals(14, existingDataOffsetLengthBitsNotAligned.readable());
assertEquals(14, existingDataOffsetLengthBitsNotAligned.written());
assertEquals(2, existingDataOffsetLengthBitsNotAligned.writable());
assertEquals(0, existingDataOffsetLengthBitsNotAligned.read());
existingDataOffsetLengthBitsNotAligned.skip(3);
assertEquals(1, existingDataOffsetLengthBitsNotAligned.read());
existingDataOffsetLengthBitsNotAligned.skip(9);
assertEquals(-1, existingDataOffsetLengthBitsNotAligned.read());