### Question:
IkonosMetadata extends XmlMetadata { @Override public ProductData.UTC getProductEndTime() { ProductData.UTC date = null; String value = null; try { value = getAttributeValue(IkonosConstants.PATH_END_TIME, null); } catch (Exception e) { warn(MISSING_ELEMENT_WARNING, IkonosConstants.PATH_END_TIME); } if (value != null && !value.isEmpty()) { date = DateHelper.parseDate(value, IkonosConstants.IKONOS_UTC_DATE_FORMAT); } return date; } IkonosMetadata(final String name); static IkonosMetadata create(FilePathInputStream filePathInputStream); String getProductType(); @Override int getNumBands(); @Override String getProductName(); @Override String getFormatName(); @Override int getRasterWidth(); @Override int getRasterHeight(); @Override String[] getRasterFileNames(); @Override ProductData.UTC getProductStartTime(); @Override ProductData.UTC getProductEndTime(); @Override ProductData.UTC getCenterTime(); @Override String getProductDescription(); @Override String getFileName(); @Override String getMetadataProfile(); IkonosComponent getMetadataComponent(); void unGZipImageFiles(Path path, String imageDirectoryPath); static BandMetadata parseIMGMetadataFile(VirtualDirEx productDirectory, String metadataRelativeFilePath); static Map<String, Double> parseMetadataFile(VirtualDirEx productDirectory, String fileEntryName);  }### Answer:
@Test public void testGetProductEndTime() throws Exception { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); Date time = dateFormat.parse("2008-08-20T09:26:00Z"); assertEquals(time.getTime(), metadata.getProductEndTime().getAsDate().getTime()); }