public void testVersioner() {
DirectoryProductVersioner versioner = new DirectoryProductVersioner();
Product p = Product.getDefaultFlatProduct("test", "urn:oodt:GenericFile");
p.setProductStructure(Product.STRUCTURE_HIERARCHICAL);
p.getProductType().setProductRepositoryPath("file:///home/files");
Reference r = new Reference("file:///tmp/dir1", null, 4L);
Reference r2 = new Reference("file:///tmp/dir1/file1.txt", null, 20L);
p.getProductReferences().add(r);
p.getProductReferences().add(r2);
Metadata met = new Metadata();
met.addMetadata(CoreMetKeys.FILENAME, "dir1");
try {