StorageReportInfoSerializer extends XmlSerializer<StorageReportInfo> { public StorageReportInfoSerializer() { super(StorageReportInfo.class, StorageReportBase.SCHEMA_NAME, StorageReportBase.SCHEMA_VERSION); } StorageReportInfoSerializer();   }
@Test public void testStorageReportInfoSerializer() { StorageReportInfoSerializer serializer = new StorageReportInfoSerializer(); StorageReportInfo info = createStorageReportInfo(); String xml = serializer.serialize(info); assertNotNull(xml); StorageReportInfo infoDeserialized = serializer.deserialize(xml); assertEquals(status, infoDeserialized.getStatus()); assertEquals(startTime, infoDeserialized.getStartTime()); assertEquals(currentCount, infoDeserialized.getCurrentCount()); assertEquals(finalCount, infoDeserialized.getFinalCount()); assertEquals(completionTime, infoDeserialized.getCompletionTime()); assertEquals(estimatedCompletionTime, infoDeserialized.getEstimatedCompletionTime()); assertEquals(nextScheduledStartTime, infoDeserialized.getNextScheduledStartTime()); assertEquals(error, infoDeserialized.getError()); assertEquals(info, infoDeserialized); assertEquals(xml, serializer.serialize(infoDeserialized)); }