### Question:
SegmentList { public boolean isEmpty() { return this.size == 0; } SegmentList(final boolean recycleSegment); T get(int index); T peekLast(); T peekFirst(); @SuppressWarnings("unchecked") void add(final T e); int size(); int segmentSize(); boolean isEmpty(); void removeFromFirstWhen(final Predicate<T> predicate); void clear(); void removeFromLastWhen(final Predicate<T> predicate); void removeFromFirst(final int toIndex); @SuppressWarnings("unchecked") void addAll(final Collection<T> coll); @Override String toString(); static final int SEGMENT_SIZE; }### Answer:
@Test public void testAddGet() { assertTrue(this.list.isEmpty()); fillList(); assertFilledList(); System.out.println(this.list); }