### Question:
Kompsat2Metadata extends XmlMetadata { @Override public String getProductName() { String value = null; try { value = getAttributeValue(Kompsat2Constants.PATH_ID, Kompsat2Constants.PRODUCT_GENERIC_NAME); } catch (Exception e) { warn(MISSING_ELEMENT_WARNING, Kompsat2Constants.PATH_ID); } return value; } Kompsat2Metadata(String name); @Override int getNumBands(); @Override String getProductName(); @Override String getFormatName(); @Override int getRasterWidth(); @Override int getRasterHeight(); @Override String[] getRasterFileNames(); @Override ProductData.UTC getProductStartTime(); String getProductType(); @Override ProductData.UTC getProductEndTime(); @Override ProductData.UTC getCenterTime(); @Override String getProductDescription(); @Override String getFileName(); @Override String getMetadataProfile(); Kompsat2Component getMetadataComponent(); void setMetadataComponent(Kompsat2Component component); static float[][] parseTiePointGridAttribute(String tiePointGridPointsString);  }### Answer:
@Test public void testGetProductName() throws Exception { assertEquals("KO2_OPER_MSC_MUL_1G_20110920T013201_20110920T013203_027459_1008_0892_0001", metadata.getProductName()); }