@Test
public void testLongVec() throws Exception {

  checkLongVec(random(0));
  checkLongVec(random(1));
  checkLongVec(random(2));
  checkLongVec(random(3));
  checkLongVec(random(LongVec.DEFAULT_CAPACITY - 2));
  checkLongVec(random(LongVec.DEFAULT_CAPACITY - 1));
  checkLongVec(random(LongVec.DEFAULT_CAPACITY));
  checkLongVec(random(LongVec.DEFAULT_CAPACITY + 1));
  checkLongVec(random(LongVec.DEFAULT_CAPACITY + 2));
  for (int i = 0; i < 100; i++) {
    checkLongVec(random());
  }
}