### Question:
DeimosMetadata extends XmlMetadata { @Override public int getNumBands() { if (numBands == 0) { try { numBands = Integer.parseInt(getAttributeValue(DeimosConstants.PATH_NBANDS, "3")); } catch (NumberFormatException e) { warn(MISSING_ELEMENT_WARNING, DeimosConstants.PATH_NBANDS); } } return numBands; } DeimosMetadata(String name); @Override String getFileName(); @Override String getProductName(); String getProductDescription(); @Override String getFormatName(); @Override String getMetadataProfile(); @Override int getRasterWidth(); @Override int getRasterHeight(); @Override String[] getRasterFileNames(); @Override ProductData.UTC getProductStartTime(); @Override ProductData.UTC getProductEndTime(); String[] getBandNames(); String[] getBandUnits(); @Override int getNumBands(); int getNoDataValue(); Color getNoDataColor(); int getSaturatedPixelValue(); Color getSaturatedColor(); ProductData.UTC getCenterTime(); String getProcessingLevel(); InsertionPoint[] getGeopositionPoints();  }### Answer:
@Test public void testGetNumBands() throws Exception { assertEquals(3, metadata.getNumBands()); }