BibliographicReferenceServiceImpl extends AbstractVoEnabledService<BibliographicReference, BibliographicReferenceValueObject> implements BibliographicReferenceService { @Override @Transactional(readOnly = true) public BibliographicReference findByExternalId( DatabaseEntry accession ) { return this.bibliographicReferenceDao.findByExternalId( accession ); } @Autowired  BibliographicReferenceServiceImpl( BibliographicReferenceDao bibliographicReferenceDao ); @Override BibliographicReferenceValueObject loadValueObject( BibliographicReference entity ); @Override Collection<BibliographicReferenceValueObject> loadAllValueObjects(); @Override @Transactional(readOnly = true) List<BibliographicReference> browse( Integer start, Integer limit ); @Override @Transactional(readOnly = true) List<BibliographicReference> browse( Integer start, Integer limit, String orderField, boolean descending ); @Override @Transactional(readOnly = true) BibliographicReference findByExternalId( DatabaseEntry accession ); @Override @Transactional BibliographicReference findByExternalId( String id ); @Override @Transactional BibliographicReference findByExternalId( String id, String databaseName ); @Override @Transactional(readOnly = true) BibliographicReferenceValueObject findVOByExternalId( final String id ); @Override @Transactional Map<ExpressionExperiment, BibliographicReference> getAllExperimentLinkedReferences(); @Override @Transactional(readOnly = true) Collection<ExpressionExperiment> getRelatedExperiments( BibliographicReference bibRef ); @Override @Transactional(readOnly = true) Map<BibliographicReference, Collection<ExpressionExperiment>> getRelatedExperiments(
            Collection<BibliographicReference> records ); @Override @Transactional(readOnly = true) Collection<Long> listAll(); @Override @Transactional BibliographicReference refresh( String pubMedId ); @Override @Transactional(readOnly = true) List<BibliographicReferenceValueObject> search( SearchSettingsValueObject settings ); @Override @Transactional(readOnly = true) List<BibliographicReferenceValueObject> search( String query ); @Override @Transactional(readOnly = true) BibliographicReference thaw( BibliographicReference bibliographicReference ); @Override @Transactional(readOnly = true) Collection<BibliographicReference> thaw( Collection<BibliographicReference> bibliographicReferences );  }
@Test public final void testFindByExternalId() { BibliographicReference mockBR = BibliographicReference.Factory.newInstance(); mockBR.setPubAccession( de ); mockBR.setTitle( "My Title" ); brdao.findByExternalId( "12345", "PUBMED" ); expectLastCall().andReturn( mockBR ); replay( brdao ); svc.findByExternalId( "12345", "PUBMED" ); verify( brdao ); }