@Test
public void singleShardTest() throws IOException {

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