@Test(expected = IllegalArgumentException.class)
public void testAdvanceBackwards() throws IOException {

  final ReadableByteChannel c = Channels.newChannel(new ByteArrayInputStream(new byte[1024]));
  final RollingBuffer b = new RollingBuffer(c, 256, 512);
  b.advance(-1);
}