@Override
    public DeleteGroupsRequest.Builder buildBatchedRequest(
        int coordinatorId,
        Set<CoordinatorKey> keys
    ) {
        List<String> groupIds = keys.stream().map(key -> key.idValue).collect(Collectors.toList());
        DeleteGroupsRequestData data = new DeleteGroupsRequestData()
            .setGroupsNames(groupIds);
        return new DeleteGroupsRequest.Builder(data);
    }
@Test
    public void testBuildRequest() {
        DeleteConsumerGroupsHandler handler = new DeleteConsumerGroupsHandler(logContext);
        DeleteGroupsRequest request = handler.buildBatchedRequest(1, singleton(CoordinatorKey.byGroupId(groupId1))).build();
        assertEquals(1, request.data().groupsNames().size());
        assertEquals(groupId1, request.data().groupsNames().get(0));
    }