Landsat8Metadata extends AbstractLandsatMetadata { @Override public ProductData.UTC getCenterTime() { return getCenterTime("DATE_ACQUIRED", "SCENE_CENTER_TIME"); } Landsat8Metadata(Reader fileReader);  Landsat8Metadata(MetadataElement root); @Override MetadataElement getProductMetadata(); @Override Dimension getReflectanceDim(); @Override Dimension getThermalDim(); @Override Dimension getPanchromaticDim(); @Override String getProductType(); @Override double getScalingFactor(String bandId); @Override double getScalingOffset(String bandId); @Override ProductData.UTC getCenterTime(); @Override Pattern getOpticalBandFileNamePattern(); @Override String getQualityBandNameKey(); @Override float getWavelength(String bandIndexNumber); @Override float getBandwidth(String bandIndexNumber); @Override String getBandDescription(String bandNumber); @Override String getBandNamePrefix(String bandNumber);  }
@Test public void testGetCenterTime() throws Exception { ProductData.UTC expected = ProductData.UTC.parse("2013-04-12 10:55:46.338", "yyyy-MM-dd HH:mm:ss"); assertEquals(expected.getAsDate().getTime(), metadata.getCenterTime().getAsDate().getTime()); }