private void assertAssignment(
        Map<String, Map<Uuid, Set<Integer>>> expectedAssignment,
        GroupAssignment computedGroupAssignment
    ) {
        assertEquals(expectedAssignment.size(), computedGroupAssignment.members().size());
        for (String memberId : computedGroupAssignment.members().keySet()) {
            Map<Uuid, Set<Integer>> computedAssignmentForMember = computedGroupAssignment.members().get(memberId).partitions();
            assertEquals(expectedAssignment.get(memberId), computedAssignmentForMember);
        }
    }
Asserts that the computed group assignment matches the expected assignment.

@param expectedAssignment       A map representing the expected assignment for each member.
                                The key is the member Id and the value is another map where
                                the key is the topic Uuid and the value is a set of assigned partition Ids.
@param computedGroupAssignment  The computed group assignment to be checked against the expected assignment.
                                Contains the actual assignments for each member.
group-coordinator/src/test/java/org/apache/kafka/coordinator/group/assignor/RangeAssignorTest.java