### Question:
TransactionalExternalLinkService extends AbstractTransactionalEntityService<ExternalLink, ExternalLinkDao> implements ExternalLinkService { @Override public List<ExternalLink> getLinks() { return getDao().getAll(); } TransactionalExternalLinkService(ExternalLinkDao dao); @Override List<ExternalLink> getLinks(); @Override @PreAuthorize("hasPermission(#forumComponent.id, 'COMPONENT', 'GeneralPermission.ADMIN')") void saveLink(ExternalLink link, Component forumComponent); @Override @PreAuthorize("hasPermission(#forumComponent.id, 'COMPONENT', 'GeneralPermission.ADMIN')") boolean deleteLink(long id, Component forumComponent);  }### Answer:
@Test public void testGetLinks() throws Exception { service.getLinks(); verify(dao).getAll(); }