### Question:
SpotDimapMetadata extends XmlMetadata { public Point2D.Float[] getCornerCoordinates() { if (rootElement == null) { return null; } Point2D.Float[] corners = new Point2D.Float[5]; MetadataElement currentElement = rootElement.getElement(SpotConstants.TAG_DATASET_FRAME); if (currentElement != null) { MetadataElement[] vertices = currentElement.getElements(); float x, y; int idx = 0; for (MetadataElement vertex : vertices) { if (SpotConstants.TAG_VERTEX.equals(vertex.getName()) || SpotConstants.TAG_SCENE_CENTER.equals(vertex.getName())) { x = Float.parseFloat(vertex.getAttributeString(SpotConstants.TAG_FRAME_LON)); y = Float.parseFloat(vertex.getAttributeString(SpotConstants.TAG_FRAME_LAT)); corners[idx++] = new Point2D.Float(x, y); } } } else { logger.warning(String.format(MISSING_ELEMENT_WARNING, SpotConstants.TAG_DATASET_FRAME)); } return corners; } 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 testGetCornerCoordinates() throws Exception { assertEquals(5, metadata.getCornerCoordinates().length); assertEquals(new Point2D.Float(6.410438f, 33.727127f), metadata.getCornerCoordinates()[0]); assertEquals(new Point2D.Float(7.0806904f, 33.63457f), metadata.getCornerCoordinates()[1]); assertEquals(new Point2D.Float(6.937253f, 33.10657f), metadata.getCornerCoordinates()[2]); assertEquals(new Point2D.Float(6.271041f, 33.198708f), metadata.getCornerCoordinates()[3]); assertEquals(new Point2D.Float(6.677884f, 33.416885f), metadata.getCornerCoordinates()[4]); }