@Test(expectedExceptions = ArrayIndexOutOfBoundsException.class)
public void negativeLengthTest() throws IOException {

  // GIVEN
  try (BigByteBuffer buf = new BigByteBuffer(new byte[] { 1, 2 })) {
    // WHEN THEN
    byte[] tmp = new byte[1];
    buf.get(0, tmp, 1, -1);
  }
}