public static PrestoIcebergPartitionSpec toPrestoPartitionSpec(PartitionSpec spec, TypeManager typeManager)
    {
        return new PrestoIcebergPartitionSpec(
                spec.specId(),
                toPrestoSchema(spec.schema(), typeManager),
                toPartitionFields(spec));
    }
@Test(dataProvider = "allTransforms")
    public void testToPrestoPartitionSpec(String transform, String name)
    {
        // Create a test TypeManager
        TypeManager typeManager = createTestFunctionAndTypeManager();

        // Create a mock PartitionSpec
        PartitionSpec partitionSpec = partitionSpec(transform, name);

        PrestoIcebergPartitionSpec expectedPrestoPartitionSpec = prestoIcebergPartitionSpec(transform, name, typeManager);

        // Convert Iceberg PartitionSpec to Presto Iceberg Partition Spec
        PrestoIcebergPartitionSpec prestoIcebergPartitionSpec = toPrestoPartitionSpec(partitionSpec, typeManager);

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

        assertEquals(prestoIcebergPartitionSpec, expectedPrestoPartitionSpec);
    }