public DataEntityGroupLineageList mapGroupLineageDto(final DataEntityGroupLineageDto dataEntityGroupLineageDto) {
        final List<DataEntityLineageStream> lineageStreams = dataEntityGroupLineageDto.lineageItems()
            .stream()
            .map(this::mapStream)
            .toList();

        return new DataEntityGroupLineageList().items(lineageStreams);
    }
@Test
    void mapGroupLineageDto() {
        final var dto = new DataEntityGroupLineageDto(List.of(generateStreamDto()));
        final var result = mapper.mapGroupLineageDto(dto);
        assertThat(
            result.getItems().stream().flatMap(item -> item.getNodes().stream().map(DataEntityLineageNode::getId))
                .collect(
                    Collectors.toList())).isEqualTo(dto.lineageItems().stream()
            .flatMap(item -> item.nodes().stream().map(node -> node.entity().getDataEntity().getId())).collect(
                Collectors.toList()));
        assertThat(result.getItems().stream()
            .flatMap(item -> item.getNodes().stream().flatMap(node -> node.getGroupIdList().stream())).distinct()
            .collect(
                Collectors.toList())).isEqualTo(List.of(
            dto.lineageItems().stream().flatMap(item -> item.groups().stream()).findFirst().orElseThrow()
                .getDataEntity().getId()));
        assertThat(result.getItems().stream().flatMap(item -> item.getEdges().stream()).findFirst()
            .map(DataEntityLineageEdge::getSourceId).orElseThrow()).isIn(
            result.getItems().stream().flatMap(item -> item.getNodes().stream().map(DataEntityLineageNode::getId))
                .collect(
                    Collectors.toList()));
    }