@Test
public void testMultiBufferBeforeBoundaryBeforeBufferShouldIgnoreBytesBeforeStartAndAfterLimit()
throws Exception {
byte[] bytes = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
ByteBuffer src = ByteBuffer.wrap(bytes);
PartialWritableByteChannel channel = new PartialWritableByteChannel(
this, 29, 29);
for (int i = 0; i < 8; i++) {
assertEquals(10, channel.write(src));
src.rewind();
}
assertEquals(29, sink.position());
sink.flip();
for (int i = 9; i < 38; i++) {