### Question:
PubmedServiceImpl implements PubmedService { @Override public PubmedInfo getInfo(long pubmedId) throws DatamartException { try { Document document = getDoc(pubmedId); return getInfo(document); } catch (Exception e) { throw new DatamartException("failed to get pubmed id", e); } }  @Override PubmedInfo getInfo(long pubmedId); Document getDoc(long pubmedId); PubmedInfo getInfo(Document document); static final String PUBMED_URL; }### Answer:
@Test public void test() throws Exception { long pubmedId = 20576703; PubmedInfo pubmedInfo = pubmedService.getInfo(pubmedId); assertNotNull(pubmedInfo); assertEquals("The GeneMANIA prediction server: biological network integration for gene prioritization and predicting gene function.", pubmedInfo.title); assertEquals("2010", pubmedInfo.year); assertEquals("Warde-Farley", pubmedInfo.faln); assertEquals("Morris", pubmedInfo.laln); }