@Test(expected = IndexOutOfBoundsException.class)
public void testGetIndexNegative() throws IOException {

  final RollingBuffer b = new RollingBuffer(newChannel(new ByteArrayInputStream(new byte[2])), 1, 2);
  b.get(-1);
}