FinderPath implements Iterable<FinderSegment> { public void clear() { segments.clear(); } FinderPath();  FinderPath(List<FinderSegment> segments); static FinderPath from(String path); FinderPath append(String columnId, String itemId); FinderPath append(String columnId, String itemId, String columnTitle, String itemTitle); FinderPath append(FinderColumn<T> finderColumn); @Override Iterator<FinderSegment> iterator(); boolean isEmpty(); int size(); void clear(); FinderPath copy(); FinderSegment findColumn(String columnId); FinderSegment findColumn(Predicate<String> condition); FinderSegment findItem(String itemId); FinderSegment findItem(Predicate<String> condition); @Override String toString();  }
@Test public void clear() { FinderPath path = new FinderPath().append("foo", "bar"); assertFalse(path.isEmpty()); assertEquals(1, path.size()); path.clear(); assertTrue(path.isEmpty()); assertEquals(0, path.size()); }