@Test
public void testNoData() throws Exception {

  byte[] inputData = "".getBytes(UTF_8);
  ReadableByteChannel baseChannel = new ByteBufferChannel(inputData);
  RewindableReadableByteChannel rewindableChannel =
      new RewindableReadableByteChannel(baseChannel);
  ByteBuffer buffer = ByteBuffer.allocate(10);
  assertEquals(-1, rewindableChannel.read(buffer));
}