void (@NotNull String expectedBest, @NotNull Collection<? extends VcsRef> givenBranches) { VcsRef actualBest = getTheMostPowerfulRef(givenBranches); assertEquals(expect(expectedBest).get(0), actualBest); }