public static NestedField toIcebergNestedField(
            PrestoIcebergNestedField nestedField,
            Map<String, Integer> columnNameToIdMapping)
    {
        return NestedField.of(
                nestedField.getId(),
                nestedField.isOptional(),
                nestedField.getName(),
                toIcebergType(nestedField.getPrestoType(), nestedField.getName(), columnNameToIdMapping),
                nestedField.getDoc().orElse(null));
    }
@Test(dataProvider = "allTypes")
    public void testToIcebergNestedField(int id, String name)
    {
        // Create a test TypeManager
        TypeManager typeManager = createTestFunctionAndTypeManager();

        // Create a mock Presto Nested Field
        PrestoIcebergNestedField prestoNestedField = prestoIcebergNestedField(id, name, typeManager);

        Types.NestedField expectedNestedField = nestedField(id, name);

        // Convert Presto Nested Field to Iceberg NestedField
        Types.NestedField nestedField = toIcebergNestedField(prestoNestedField, columnNameToIdMapping(name));

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

        assertEquals(nestedField, expectedNestedField);
    }