### Question:
SumoSafeReader { public void readGeneralProductInformation() throws JAXBException, SAXException { String xPathGenProdInfo = "/xfdu:XFDU/metadataSection/metadataObject/metadataWrap/xmlData/*[name()='generalProductInformation']"; String xPathStandAloneInfo = "/xfdu:XFDU/metadataSection/metadataObject/metadataWrap/xmlData/s1sarl1:standAloneProductInformation']"; XPathExpression<Element> expr = xFactory.compile(xPathGenProdInfo, Filters.element(), null, xfdu); List<Element> value = expr.evaluate(safe); if (value == null || value.isEmpty()) { expr = xFactory.compile(xPathStandAloneInfo, Filters.element(), null, s1sarl1, xfdu); value = expr.evaluate(safe); } List<Element> informationsNode = value.get(0).getChildren(); productInformation = new ProductInformation(); for (Element e : informationsNode) { String name = e.getName(); String val = e.getValue(); productInformation.putValueInfo(name, val); } } 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 readGeneralProductInformation(){ try { SumoSafeReader safeReader=new SumoSafeReader(safeFile); safeReader.readGeneralProductInformation(); } catch (IOException e) { fail(e.getMessage()); } catch (JDOMException e) { fail(e.getMessage()); }catch (JAXBException e) { fail(e.getMessage()); } catch (SAXException e) { e.printStackTrace(); } }
@Test public void testReadGeneralProductInformation() { try { SumoSafeReader safeReader=new SumoSafeReader(safeFile); safeReader.readGeneralProductInformation(); } catch (JDOMException e) { fail(e.getMessage()); } catch (IOException e) { fail(e.getMessage()); } catch (Exception e) { e.printStackTrace(); fail(e.getMessage()); } }