AgilentCefParser { public static CEF parse(Path path) throws FileParsingException { XMLStreamReader xsr = null; try { xsr = JaxbUtils.createXmlStreamReader(path, false); } catch (JAXBException e) { throw new FileParsingException("Could not create XML Stream Reader for Agilent CEF file", e); } CEF cef = null; try { cef = JaxbUtils.unmarshal(CEF.class, xsr); } catch (JAXBException e) { throw new FileParsingException("Could not unmarshall CEF.class from XML", e); } return cef; }  static CEF parse(Path path);  }
@Test public void parse() throws Exception { for (Path path : paths) { CEF cef = AgilentCefParser.parse(path); Assert.assertFalse(cef.getCompoundList().getCompound().isEmpty()); } }