### Question:
Kompsat2Metadata extends XmlMetadata { @Override public int getNumBands() { return 0; } 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 testGetNumBands() throws Exception { assertEquals(0, metadata.getNumBands()); }