### Question:
TransactionalExternalLinkService extends AbstractTransactionalEntityService<ExternalLink, ExternalLinkDao> implements ExternalLinkService { @Override @PreAuthorize("hasPermission(#forumComponent.id, 'COMPONENT', 'GeneralPermission.ADMIN')") public boolean deleteLink(long id, Component forumComponent) { return getDao().delete(id); } 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 testRemoveLink() throws Exception { Component component = new Component(); service.deleteLink(1L, component); verify(dao).delete(eq(1L)); }