### Question:
TransactionalComponentService extends AbstractTransactionalEntityService<Component, ComponentDao> implements ComponentService { @Override public Component getComponentOfForum() { return getDao().getComponent(); } TransactionalComponentService(ImageService icoFormatImageService, ComponentDao dao); @Override Component getComponentOfForum(); @Override @PreAuthorize("hasPermission(#componentInformation.id, 'COMPONENT', 'GeneralPermission.ADMIN')") void setComponentInformation(ComponentInformation componentInformation); @Override Date getComponentModificationTime(); @Override @PreAuthorize("hasPermission(#componentId, 'COMPONENT', 'GeneralPermission.ADMIN')") void checkPermissionsForComponent(long componentId); static final String LOGO_TOOLTIP_PROPERTY; static final String TITLE_PREFIX_PROPERTY; static final String LOGO_PROPERTY; static final String COPYRIGHT_PROPERTY; static final String COMPONENT_FAVICON_ICO_PARAM; static final String COMPONENT_FAVICON_PNG_PARAM; static final String COMPONENT_SESSION_TIMEOUT; static final String COMPONENT_EMAIL_NOTIFICATION; static final String COMPONENT_AVATAR_MAX_SIZE; }### Answer:
@Test public void getComponentShouldBeDelegatedToDao() { componentService.getComponentOfForum(); verify(componentDao).getComponent(); }