@Test
public void testEnsureCapacity() {

  IntList intList = new IntList(0);
  intList.add(1);
  intList.ensureCapacity(100);
  assertEquals(1, intList.size());
  assertEqualArray(intList.toArray(), 1);
}