### Question:
BranchGroupMap { public List<Group> getAllAvailableGroups() { return allAvailableGroups; } BranchGroupMap(List<PoulpeBranch> branches, List<Group> groups, BranchService branchService); void setSelectedGroupForAllBranches(Group group); List<ModeratingGroupComboboxRow> getBranchesCollection(); void setModeratingGroupForAllBranches(Group oldModeratorGroup); void setModeratingGroupForCurrentBranch(Group oldModeratorGroup, PoulpeBranch branch); List<Group> getAllAvailableGroups(); void setAllAvailableGroups(List<Group> allAvailableGroups);  }### Answer:
@Test public void constructionTestAvalableGroups() throws NoSuchFieldException, IllegalAccessException { List<Group> allAvalableGroups = branchGroupMap.getAllAvailableGroups(); int expectedSize = groupsList.size(); int actualSize = allAvalableGroups.size(); assertNotNull(allAvalableGroups); assertNotSame(allAvalableGroups, groupsList); assertEquals(actualSize, expectedSize); for (int i = 0; i < actualSize; i++) { Group expectedGroup = groupsList.get(i); Group actualGroup = allAvalableGroups.get(i); assertSame(actualGroup, expectedGroup); } }