### Question:
SumoSafeReader { public void readorbitInformation() throws JAXBException, SAXException { String xPathOrbit = "/xfdu:XFDU/metadataSection/metadataObject/metadataWrap/xmlData/safe:orbitReference"; XPathExpression<Element> expr = xFactory.compile(xPathOrbit, Filters.element(), null, xfdu, safeNs); Element orbit = expr.evaluateFirst(safe); orbitWrapper = new OrbitInformation(); List<Element> oNumbers = orbit.getChildren("orbitNumber",safeNs); if (oNumbers != null) for (Element e : oNumbers) { String type = e.getAttributeValue("type"); if (type.equals(OrbitInformation.ORBIT_TYPE_START)) orbitWrapper.setOrbitNumberStart(e.getValue()); else if (type.equals(OrbitInformation.ORBIT_TYPE_STOP)) orbitWrapper.setOrbitNumberStop(e.getValue()); } List<Element> relativeONumbers = orbit .getChildren("relativeOrbitNumber",safeNs); if (relativeONumbers != null) for (Element e : relativeONumbers) { String type = e.getAttributeValue("type"); if (type.equals(OrbitInformation.ORBIT_TYPE_START)) orbitWrapper.setOrbitNumberStart(e.getValue()); else if (type.equals(OrbitInformation.ORBIT_TYPE_STOP)) orbitWrapper.setOrbitNumberStop(e.getValue()); } Element cycle = orbit.getChild("cycleNumber",safeNs); if (cycle != null) orbitWrapper.setCycleNumber(cycle.getValue()); Element phase = orbit.getChild("phaseIdentifier",safeNs); if (phase != null) orbitWrapper.setPhaseIdentifier(phase.getValue()); } SumoSafeReader(String safePath); void readXML(); void readMesasurementFilesFromSafe(); void readGeneralProductInformation(); void readAcquisitionPeriod(); void readorbitInformation(); ProductInformation getProductInformation(); void setProductInformation(ProductInformation productInformation); AcquisitionPeriod getAcquPeriod(); void setAcquPeriod(AcquisitionPeriod acquPeriod); File[] getMeasurements(); void setMeasurements(File[] measurements);  }### Answer:
@Test public void readorbitInformation() { try { SumoSafeReader safeReader=new SumoSafeReader(safeFile); safeReader.readAcquisitionPeriod(); safeReader.readorbitInformation(); } catch (JDOMException e) { fail(e.getMessage()); } catch (IOException e) { fail(e.getMessage()); } catch (Exception e) { e.printStackTrace(); fail(e.getMessage()); } }