### Question:
SpotViewMetadata extends XmlMetadata { public float getRasterGeoRefX() { float value = 0.0f; MetadataElement currentElement; if ((currentElement = rootElement.getElement(SpotConstants.TAG_GEO_INFORMATION)) != null) { try { value = Float.parseFloat(currentElement.getAttributeString(SpotConstants.TAG_XGEOREF)); } catch (NumberFormatException e) { logger.warning(String.format(MISSING_ELEMENT_WARNING, SpotConstants.TAG_XGEOREF)); } } else { logger.warning(String.format(MISSING_ELEMENT_WARNING, SpotConstants.TAG_XGEOREF)); } return value; } SpotViewMetadata(String name); @Override String getFileName(); @Override String getProductName(); @Override String getProductDescription(); @Override int getNumBands(); @Override String getFormatName(); @Override String getMetadataProfile(); @Override int getRasterWidth(); @Override int getRasterHeight(); @Override String[] getRasterFileNames(); @Override ProductData.UTC getProductStartTime(); @Override ProductData.UTC getProductEndTime(); @Override ProductData.UTC getCenterTime(); String[] getBandNames(); ByteOrder getRasterJavaByteOrder(); int getRasterDataType(); int getRasterPixelSize(); float getRasterGeoRefX(); float getRasterGeoRefY(); float getRasterGeoRefSizeX(); float getRasterGeoRefSizeY(); @SuppressWarnings("SameReturnValue") String getGeolayerFileName(); int getGeolayerNumBands(); int getGeolayerWidth(); int getGeolayerHeight(); ByteOrder getGeolayerJavaByteOrder(); int getGeolayerPixelSize(); int getGeolayerDataType(); String getProjectionCode();  }### Answer:
@Test public void testGetRasterGeoRefX() throws Exception { assertEquals(5733737.5, metadata.getRasterGeoRefX(), 0.001); }