public static PrestoIcebergSchema toPrestoSchema(Schema schema, TypeManager typeManager)
    {
        return new PrestoIcebergSchema(
                schema.schemaId(),
                schema.columns().stream()
                        .map(column -> toPrestoNestedField(column, typeManager))
                        .collect(toImmutableList()),
                ImmutableMap.copyOf(TypeUtil.indexByName(schema.asStruct())),
                schema.getAliases(),
                schema.identifierFieldIds());
    }
@Test
    public void testToPrestoSchema()
    {
        // Create a test TypeManager
        TypeManager typeManager = createTestFunctionAndTypeManager();

        // Create a mock Schema
        Schema mockSchema = schema();

        PrestoIcebergSchema expectedPrestoIcebergSchema = prestoIcebergSchema(typeManager);

        // Convert to PrestoIcebergSchema
        PrestoIcebergSchema prestoSchema = SchemaConverter.toPrestoSchema(mockSchema, typeManager);

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

        assertEquals(prestoSchema, expectedPrestoIcebergSchema);
    }