### Question:
DeimosMetadata extends XmlMetadata { public String[] getBandNames() { int nBands = getNumBands(); String[] names = new String[nBands]; for (int i = 0; i < nBands; i++) { names[i] = getAttributeValue(DeimosConstants.PATH_BAND_DESCRIPTION, i, DeimosConstants.DEFAULT_BAND_NAMES[i]); if (names[i].contains(" ")) { names[i] = names[i].replace(" ", "_"); } } return names; } 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 testGetBandNames() throws Exception { String[] bandNames = metadata.getBandNames(); assertNotNull(bandNames); assertEquals(bandNames.length, 3); assertEquals(DeimosConstants.DEFAULT_BAND_NAMES[0], bandNames[0]); assertEquals(DeimosConstants.DEFAULT_BAND_NAMES[1], bandNames[1]); assertEquals(DeimosConstants.DEFAULT_BAND_NAMES[2], bandNames[2]); }