### Question:
PubmedSearch { public Iterator<PubmedArticleType> search(String query) throws RemoteException { return search(query, Integer.MAX_VALUE); } PubmedSearch(); Iterator<PubmedArticleType> search(String query); List<Integer> searchIds(String query); Iterator<PubmedArticleType> search(String query, int maxNrResults);  }### Answer:
@Test public void testPmidArticle() throws Exception { List<PubmedArticleType> articles = newArrayList(new PubmedSearch() .search("23447503[pmid]")); assertTrue(articles.size() == 1); assertEquals("23447503", articles.get(0).getMedlineCitation().getPMID() .toString()); }
@Test @Ignore public void testLayers() throws Exception { PubmedSearch searcher = new PubmedSearch(); for (String layer : new LineReader(new FileInputStream( "src/test/resources/20130208_layers.txt"))) { searcher.search("\"" + layer + "\"", 1); } }
@Test public void testNeuron() throws Exception { List<PubmedArticleType> articles = Lists .newArrayList(new PubmedSearch().search("axon", 5)); assertEquals(5, articles.size()); }
@Test public void testNeuron2() throws Exception { List<PubmedArticleType> articles = Lists .newArrayList(new PubmedSearch().search("mouse", 90)); assertEquals(90, articles.size()); }