### Question:
LongList { public boolean contains(long l) { for (int i = 0; i < size; i++) { if (longs[i] == l) { return true; } } return false; } LongList();  LongList(int initialCapacity); static LongList of(long... values); void add(long l); void addAll(LongList other); int getSize(); long get(int i); boolean contains(long l); boolean remove(long l); long remove(int i); void clear(); @Override String toString(); long[] toArray(); boolean isEmpty();  }### Answer:
@Test void testContains() { longList.add(42); assertThat(longList.contains(42)).isTrue(); assertThat(longList.contains(0)).isFalse(); }