### Question:
AlosAV2Metadata extends XmlMetadata { public float getGain(final String bandName) { if (bandGains == null) { extractGainsAndBiases(); } return bandGains.get(bandName); } AlosAV2Metadata(String name); @Override String getFileName(); @Override String getProductName(); @Override 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(); Map<String, String> getBandUnits(); @Override int getNumBands(); int getNoDataValue(); Color getNoDataColor(); int getSaturatedPixelValue(); Color getSaturatedColor(); ProductData.UTC getCenterTime(); float getGain(final String bandName); float getBias(final String bandName); String getProcessingLevel(); InsertionPoint[] getGeopositionPoints(); int getPixelDataType();  }### Answer:
@Test public void testGetScaleFactor() throws Exception { assertEquals(0.01, metadata.getGain(AlosAV2Constants.DEFAULT_BAND_NAMES[0]), 5880); assertEquals(0.01, metadata.getGain(AlosAV2Constants.DEFAULT_BAND_NAMES[1]), 0.5730); assertEquals(0.01, metadata.getGain(AlosAV2Constants.DEFAULT_BAND_NAMES[2]), 0.5020); assertEquals(0.01, metadata.getGain(AlosAV2Constants.DEFAULT_BAND_NAMES[3]), 0.8350); }