public static PartitionSpec toIcebergPartitionSpec(PrestoIcebergPartitionSpec spec)
    {
        return parsePartitionFields(
                toIcebergSchema(spec.getSchema()),
                spec.getFields(),
                spec.getSpecId());
    }
@Test(dataProvider = "allTransforms")
    public void testToIcebergPartitionSpec(String transform, String name)
    {
        // Create a test TypeManager
        TypeManager typeManager = createTestFunctionAndTypeManager();

        // Create a mock PartitionSpec
        PrestoIcebergPartitionSpec prestoPartitionSpec = prestoIcebergPartitionSpec(transform, name, typeManager);

        PartitionSpec expectedPartitionSpec = partitionSpec(transform, name);

        // Convert Presto Partition Spec to Iceberg PartitionSpec
        PartitionSpec partitionSpec = toIcebergPartitionSpec(prestoPartitionSpec);

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

        assertEquals(partitionSpec, expectedPartitionSpec);
    }