### Question:
SpotTake5Metadata extends XmlMetadata { public ProductData.UTC getDatePdv() { String dateStr = null; ProductData.UTC dateValue = null; MetadataElement currentElement; if (((currentElement = rootElement.getElement(SpotConstants.SPOT4_TAKE5_TAG_HEADER)) != null)) { dateStr = currentElement.getAttributeString(SpotConstants.SPOT4_TAKE5_TAG_DATE_PDV); } if (dateStr != null) { dateValue = DateHelper.parseDate(dateStr, SpotConstants.SPOT4_TAKE5_UTC_DATE_FORMAT); } return dateValue; } SpotTake5Metadata(String name); String getMetaSubFolder(); void setMetaSubFolder(String metaSubFolder); @Override String getFileName(); @Override int getNumBands(); String[] getBandNames(); Map<String, String> getTiffFiles(); Map<String, String> getMaskFiles(); String getMasksFolder(); @Override String getProductName(); String getProjectionCode(); float getRasterGeoRefY(); float getRasterGeoRefX(); float getRasterGeoRefSizeY(); float getRasterGeoRefSizeX(); @Override String getFormatName(); @Override String getMetadataProfile(); @Override int getRasterWidth(); @Override int getRasterHeight(); @Override String[] getRasterFileNames(); @Override ProductData.UTC getProductStartTime(); @Override ProductData.UTC getProductEndTime(); @Override ProductData.UTC getCenterTime(); @Override String getProductDescription(); ProductData.UTC getDatePdv(); String getGeographicZone();  }### Answer:
@Test public void testGetDatePdv() throws Exception { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); sdf.setTimeZone(TimeZone.getTimeZone("UTC")); Date expected = sdf.parse("2013-06-16 06:40:34"); assertEquals(expected.getTime(), metadata.getDatePdv().getAsDate().getTime()); }