BranchesList implements Iterable<Branch> { public static BranchesList newInstance() { return new BranchesList(new ArrayList<Branch>(), FlowerOptionPreferences.newInstance()); } 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 testThatNewInstanceReturnsNotNullInkDropSizeLimiter() { Assertions.assertThat(BranchesList.newInstance()).isNotNull(); }
@Test public void testThatNewInstanceReturnsANewInstance() { BranchesList firstInstance = BranchesList.newInstance(); BranchesList secondInstance = BranchesList.newInstance(); Assertions.assertThat(firstInstance).isNotEqualTo(secondInstance); }