@Test
public void testZeroZeros() throws IOException {

  final byte[] b = new byte[] {1, 1, 1, 1, 1};
  final ReadableByteChannel channel = create(b, 0);
  final ByteBuffer buffer = ByteBuffer.allocate(5);
  assertEquals(b.length, channel.read(buffer));
  assertArrayEquals(copyOf(b, buffer.capacity()), buffer.array());
  buffer.flip();
  assertEquals(-1, channel.read(buffer));
}