IntList { public int size() { return len; } IntList(int capacity);  IntList(); int[] toArray(); int size(); int get(int i); int set(int i, int val); void ensureCapacity(int capacity); IntList add(int i);  }
@Test public void testConstructor() { IntList intList = new IntList(); assertEquals(0, intList.size()); }
@Test public void testConstructor_withCapacity() { IntList intList = new IntList(1); assertEquals(0, intList.size()); }