private ConsumerGroupHeartbeatResponse createConsumerGroupHeartbeatResponseWithBumpedEpoch(
            ConsumerGroupHeartbeatResponseData.Assignment assignment) {
        return new ConsumerGroupHeartbeatResponse(new ConsumerGroupHeartbeatResponseData()
                .setErrorCode(Errors.NONE.code())
                .setMemberId(MEMBER_ID)
                .setMemberEpoch(MEMBER_EPOCH + 1)
                .setAssignment(assignment));
    }
Create heartbeat response with the given assignment and a bumped epoch (incrementing by 1
as default but could be any increment). This will be used to mock when a member
receives a heartbeat response to the join request, and the response includes an assignment.
clients/src/test/java/org/apache/kafka/clients/consumer/internals/MembershipManagerImplTest.java