public static List<ConsumerGroupDescribeResponseData.DescribedGroup> getErrorDescribedGroupList(
        List<String> groupIds,
        Errors error
    ) {
        return groupIds.stream()
            .map(groupId -> new ConsumerGroupDescribeResponseData.DescribedGroup()
                .setGroupId(groupId)
                .setErrorCode(error.code())
            ).collect(Collectors.toList());
    }
@Test
    public void testGetErrorDescribedGroupList() {
        List<ConsumerGroupDescribeResponseData.DescribedGroup> expectedDescribedGroupList = Arrays.asList(
            new ConsumerGroupDescribeResponseData.DescribedGroup()
                .setGroupId("group-id-1")
                .setErrorCode(Errors.COORDINATOR_LOAD_IN_PROGRESS.code()),
            new ConsumerGroupDescribeResponseData.DescribedGroup()
                .setGroupId("group-id-2")
                .setErrorCode(Errors.COORDINATOR_LOAD_IN_PROGRESS.code()),
            new ConsumerGroupDescribeResponseData.DescribedGroup()
                .setGroupId("group-id-3")
                .setErrorCode(Errors.COORDINATOR_LOAD_IN_PROGRESS.code())
        );

        List<ConsumerGroupDescribeResponseData.DescribedGroup> describedGroupList = getErrorDescribedGroupList(
            Arrays.asList("group-id-1", "group-id-2", "group-id-3"),
            Errors.COORDINATOR_LOAD_IN_PROGRESS
        );

        assertEquals(expectedDescribedGroupList, describedGroupList);
    }