StorageReportListSerializer extends XmlSerializer<StorageReportList> { public StorageReportListSerializer() { super(StorageReportList.class, StorageReportBase.SCHEMA_NAME, StorageReportBase.SCHEMA_VERSION); } StorageReportListSerializer();   }
@Test public void testStorageReportListSerializer() { StorageReportListSerializer serializer = new StorageReportListSerializer(); StorageReportList reportList = createStorageReportList(); String xml = serializer.serialize(reportList); assertNotNull(xml); StorageReportList listDeserialized = serializer.deserialize(xml); assertNotNull(listDeserialized); assertEquals(reportList, listDeserialized); assertEquals(xml, serializer.serialize(listDeserialized)); }