### Question:
SpotDimapMetadata extends XmlMetadata { public Color getSaturatedColor() { Color color = null; if (rootElement != null) { MetadataElement currentElement; if ((currentElement = rootElement.getElement(SpotConstants.TAG_IMAGE_DISPLAY)) != null) { MetadataElement[] specialValues = currentElement.getElements(); for (MetadataElement specialValue : specialValues) { if (specialValue.containsAttribute(SpotConstants.TAG_SPECIAL_VALUE_TEXT) && SpotConstants.SATURATED_VALUE.equals(specialValue.getAttributeString(SpotConstants.TAG_SPECIAL_VALUE_TEXT))) { if ((currentElement = specialValue.getElement(SpotConstants.TAG_SPECIAL_VALUE_COLOR)) != null) { int red = (int) (255.0 * Double.parseDouble(currentElement.getAttributeString(SpotConstants.TAG_RED_LEVEL))); int green = (int) (255.0 * Double.parseDouble(currentElement.getAttributeString(SpotConstants.TAG_GREEN_LEVEL))); int blue = (int) (255.0 * Double.parseDouble(currentElement.getAttributeString(SpotConstants.TAG_BLUE_LEVEL))); color = new Color(red, green, blue); } } } } else { logger.warning(String.format(MISSING_ELEMENT_WARNING, SpotConstants.SATURATED_VALUE)); } } return color; } 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 testGetSaturatedColor() throws Exception { assertEquals(new Color(255, 255, 255), metadata.getSaturatedColor()); }