metadataEntries1.put("CAS.ProductReceivedTime", "2013-09-12T16:25:50.662Z");
Metadata metadata1 = new Metadata();
metadata1.addMetadata(metadataEntries1);
Reference reference1 = new Reference("original1", "dataStore1", 1000,
new MimeTypes().forName("text/plain"));
ProductType productType1 = new ProductType("1", "TestType", "test type 1",
"repository1", "versioner1");
Product product1 = new Product();
product1.setProductId("123");
product1.setProductName("test product");
product1.setProductStructure("flat");
product1.setProductType(productType1);
FileTransferStatus status1 = new FileTransferStatus(reference1, 1000, 100,
product1);
// Create another FileTransferStatus instance using Metadata, Reference,
// ProductType and Product instances.
Hashtable metadataEntries2 = new Hashtable<String, Object>();
metadataEntries2.put("CAS.ProductReceivedTime", "2011-04-11T11:59:59.662Z");
Metadata metadata2 = new Metadata();
metadata2.addMetadata(metadataEntries2);
Reference reference2 = new Reference("original2", "dataStore2", 500,
new MimeTypes().forName("application/pdf"));
ProductType productType2 = new ProductType("2", "TestType2", "test type 2",
"repository2", "versioner2");
Product product2 = new Product();