BranchesList implements Iterable<Branch> { @Override public Iterator<Branch> iterator() { return list.iterator(); } BranchesList(List<Branch> list, FlowerOptionPreferences flowerOptionPreferences); static BranchesList newInstance(); void bloomFrom(Branch branch); @Override Iterator<Branch> iterator(); void prune(Branch branch); void clear(); List<Branch> asList();  }
@Test public void testThatBranchListIteratorIsTheIteratorOfTheInternalList() { branchesList = new BranchesList(internalListMock, flowerOptionPreferences); branchesList.iterator(); verify(internalListMock).iterator(); }