### Question:
PubmedXmlParser { public List<MedlineCitation> parseAsArticles(InputStream is) { try { MedlineCitationSet parse = (MedlineCitationSet) unmarshaller .unmarshal(is); return parse.getMedlineCitation(); } catch (Exception e) { LOG.warn("could not parse article ", e); return null; } finally { IOUtils.closeQuietly(is); } } PubmedXmlParser(); PubmedArticleSet parse(InputStream is); PubmedArticle parseAsArticle(InputStream is); List<MedlineCitation> parseAsArticles(InputStream is);  }### Answer:
@Test public void testParsePubmedXmls() throws Exception { InputStream is = ResourceHelper .getInputStream("pubmed_abstracts/medline13n0787.xml"); List<MedlineCitation> arts = new PubmedXmlParser().parseAsArticles(is); assertEquals(3, arts.size()); assertEquals( "An unusual clinical manifestation in a factor IX deficient patient: orbital haemorrhage without trauma.", arts.get(0).getArticle().getArticleTitle().getvalue()); assertEquals("23419111", arts.get(0).getPMID().getvalue()); }