### Question:
SpotDimapMetadata extends XmlMetadata { public TiePoint[] getTiePoints() { TiePoint[] tiePoints = null; MetadataElement currentElement; if (((currentElement = rootElement.getElement(SpotConstants.TAG_GEOPOSITION)) != null) && ((currentElement = currentElement.getElement(SpotConstants.TAG_GEOPOSITION_POINTS)) != null)) { MetadataElement[] tiePointNodes = currentElement.getElements(); if (tiePointNodes != null && tiePointNodes.length > 0) { try { tiePoints = new TiePoint[tiePointNodes.length]; int idx = 0; for (MetadataElement tiePointNode : tiePointNodes) { float i = Float.parseFloat(tiePointNode.getAttributeString(SpotConstants.TAG_TIE_POINT_DATA_X)); float j = Float.parseFloat(tiePointNode.getAttributeString(SpotConstants.TAG_TIE_POINT_DATA_Y)); float x = Float.parseFloat(tiePointNode.getAttributeString(SpotConstants.TAG_TIE_POINT_CRS_X)); float y = Float.parseFloat(tiePointNode.getAttributeString(SpotConstants.TAG_TIE_POINT_CRS_Y)); float z = Float.parseFloat(tiePointNode.getAttributeString(SpotConstants.TAG_TIE_POINT_CRS_Z)); tiePoints[idx++] = new TiePoint(i, j, 0.0, x, y, z); } } catch (NumberFormatException e) { logger.warning(String.format(MISSING_ELEMENT_WARNING, SpotConstants.TAG_GEOPOSITION_POINTS)); tiePoints = null; } } } else { logger.warning(String.format(MISSING_ELEMENT_WARNING, SpotConstants.TAG_GEOPOSITION_POINTS)); } return tiePoints; } 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 testGetTiePoints() throws Exception { assertEquals(4, metadata.getTiePoints().length); }