public static Schema toIcebergSchema(PrestoIcebergSchema schema)
    {
        return new Schema(
                schema.getSchemaId(),
                schema.getColumns().stream()
                        .map(nestedField -> toIcebergNestedField(nestedField, schema.getColumnNameToIdMapping()))
                        .collect(toImmutableList()),
                schema.getAliases(),
                schema.getIdentifierFieldIds());
    }
@Test
    public void testToIcebergSchema()
    {
        // Create a test TypeManager
        TypeManager typeManager = createTestFunctionAndTypeManager();

        // Create a mock Presto Iceberg Schema
        PrestoIcebergSchema prestoSchema = prestoIcebergSchema(typeManager);

        Schema expectedIcebergSchema = schema();

        // Convert Presto Iceberg Schema to Iceberg Schema
        Schema schema = SchemaConverter.toIcebergSchema(prestoSchema);

        // Check that the result is not null
        assertNotNull(schema);

        assertTrue(schema.sameSchema(expectedIcebergSchema));
    }