public static DeleteGroupsResponseData.DeletableGroupResultCollection getErrorResultCollection(
        List<String> groupIds,
        Errors error
    ) {
        DeleteGroupsResponseData.DeletableGroupResultCollection resultCollection =
            new DeleteGroupsResponseData.DeletableGroupResultCollection();
        groupIds.forEach(groupId -> resultCollection.add(
            new DeleteGroupsResponseData.DeletableGroupResult()
                .setGroupId(groupId)
                .setErrorCode(error.code())
        ));
        return resultCollection;
    }
@Test
    public void testGetErrorResultCollection() {
        String groupId1 = "group-id-1";
        String groupId2 = "group-id-2";
        DeleteGroupsRequestData data = new DeleteGroupsRequestData()
            .setGroupsNames(Arrays.asList(groupId1, groupId2));
        DeleteGroupsResponseData.DeletableGroupResultCollection expectedResultCollection =
            new DeleteGroupsResponseData.DeletableGroupResultCollection(Arrays.asList(
                new DeleteGroupsResponseData.DeletableGroupResult()
                    .setGroupId(groupId1)
                    .setErrorCode(Errors.COORDINATOR_LOAD_IN_PROGRESS.code()),
                new DeleteGroupsResponseData.DeletableGroupResult()
                    .setGroupId(groupId2)
                    .setErrorCode(Errors.COORDINATOR_LOAD_IN_PROGRESS.code())
            ).iterator());

        assertEquals(expectedResultCollection, getErrorResultCollection(data.groupsNames(), Errors.COORDINATOR_LOAD_IN_PROGRESS));
    }