### Question:
Kompsat2Metadata extends XmlMetadata { public Kompsat2Component getMetadataComponent() { return this.component; } 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 testKompsat2MetadataComponent() throws Exception { String metadataFileName = "KO2_OPER_MSC_MUL_1G_20110920T013201_20110920T013203_027459_1008_0892_0001.MD.XML"; Path metadataPath = TestUtil.getTestFile(productsFolder + "KO2_OPER_MSC_MUL_1G_20110920T013201_20110920T013203_027459_1008_0892_0001.SIP" + File.separator + metadataFileName).toPath(); try (VirtualDirEx productDirectory = VirtualDirEx.build(metadataPath, false, false)) { metadata = Kompsat2ProductReader.readProductMetadata(productDirectory, metadataFileName); assertNotNull(metadata.getMetadataComponent()); float[][] tiePointGridPoints = {{-14.40976521f, -14.40929376f, -14.57977522f, -14.57929798f },{129.57652647f, 129.74505447f, 129.57696612f, 129.74562262f}}; for (int index = 0; index<4;index++) { assertEquals(tiePointGridPoints[0][index], metadata.getMetadataComponent().getTiePointGridPoints()[0][index], 0.e-6); assertEquals(tiePointGridPoints[1][index], metadata.getMetadataComponent().getTiePointGridPoints()[1][index], 0.e-6); } assertEquals("UTM:South,52 WGS 84", metadata.getMetadataComponent().getCrsCode()); assertEquals("MSC_110920012631_27459_10080892_1G.zip", metadata.getMetadataComponent().getImageDirectoryName() ); assertEquals("-14.494548069 129.661042414", metadata.getMetadataComponent().getOriginPos()); } }