void () { Collection<VcsRef> refs = given("zoo", "origin/zoo", "feature"); refs = ContainerUtil.filter(refs, ref -> !ref.getName().equals("origin/zoo")); assertEquals("feature", getTheMostPowerfulRef(refs).getName()); }