void (Map<? extends GitBranch, Hash> actualBranches, Collection<Branch> expectedBranches) { VcsTestUtil.assertEqualCollections(actualBranches.entrySet(), expectedBranches, new VcsTestUtil.EqualityChecker<Map.Entry<? extends GitBranch, Hash>, Branch>() { @Override public boolean areEqual(Map.Entry<? extends GitBranch, Hash> actual, Branch expected) { return branchesAreEqual(actual.getKey(), actual.getValue(), expected); } }); }