@Test
public void put() {

  int size = 100;
  byte[] expectedBytes = new byte[size];
  random.nextBytes(expectedBytes);
  buffer.put(0, expectedBytes, 0, expectedBytes.length);
  byte[] actualBytes = new byte[size];
  buffer.get(0, actualBytes, 0, actualBytes.length);
  assertArrayEquals(expectedBytes, actualBytes);
}