public static PrestoIcebergNestedField toPrestoNestedField(NestedField nestedField, TypeManager typeManager)
    {
        return new PrestoIcebergNestedField(
                nestedField.isOptional(),
                nestedField.fieldId(),
                nestedField.name(),
                toPrestoType(nestedField.type(), typeManager),
                Optional.ofNullable(nestedField.doc()));
    }
@Test(dataProvider = "allTypes")
    public void testToPrestoNestedField(int id, String name)
    {
        // Create a test TypeManager
        TypeManager typeManager = createTestFunctionAndTypeManager();

        // Create a mock NestedField
        Types.NestedField nestedField = nestedField(id, name);

        PrestoIcebergNestedField expectedPrestoNestedField = prestoIcebergNestedField(id, name, typeManager);

        // Convert Iceberg NestedField to Presto Nested Field
        PrestoIcebergNestedField prestoNestedField = toPrestoNestedField(nestedField, typeManager);

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

        assertEquals(prestoNestedField, expectedPrestoNestedField);
    }