### Question:
SpotDimapMetadata extends XmlMetadata { public float getWavelength(int bandIndex) { if (wavelengths == null) { extractWavelengthAndBandwidths(); } return wavelengths[bandIndex]; } SpotDimapMetadata(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(); float getWavelength(int bandIndex); float getBandwidth(int bandIndex); ProductData.UTC getCenterTime(); TiePoint[] getTiePoints(); InsertionPoint getInsertPoint(); double getScalingFactor(int bandIndex); double getScalingOffset(int bandIndex); float getGain(int bandIndex); String getCRSCode(); double getOrientation(); Point2D.Float[] getCornerCoordinates(); HashMap<String, Double> getStatistics(int bandIndex); int getPixelDataType();  }### Answer:
@Test public void testGetWavelength() throws Exception { assertEquals(470, metadata.getWavelength(0), 0.001); assertEquals(590, metadata.getWavelength(1), 0.001); assertEquals(730, metadata.getWavelength(2), 0.001); assertEquals(1510, metadata.getWavelength(3), 0.001); }