### Question:
Kompsat2Metadata extends XmlMetadata { public String getProductType() { String productType = null; try { productType = getAttributeValue(Kompsat2Constants.PATH_PRODUCT_TYPE, Kompsat2Constants.KOMPSAT2_PRODUCT); } catch (Exception e) { warn(MISSING_ELEMENT_WARNING, Kompsat2Constants.PATH_PRODUCT_TYPE); } return productType; } 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 testGetProductType() throws Exception { assertEquals("MSC_MUL_1G", metadata.getProductType()); }