@Test
public void testReadUnderlying() throws IOException {

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