### Question:
TransactionalConfigurationService implements ConfigurationService { @Override @PreAuthorize("hasPermission(#componentId, 'COMPONENT', 'GeneralPermission.ADMIN')") public SapeConfiguration getSapeConfiguration(long componentId) { SapeConfiguration configuration = new SapeConfiguration(); configuration.setAccountId(sapeAccountId.getValue()); configuration.setTimeout(sapeTimeout.intValue()); configuration.setHostUrl(sapeHostUrl.getValue()); configuration.setNumberOfLinks(sapeNumberOrLinks.intValue()); configuration.setShowOnMainPage(sapeShowOnMainPage.booleanValue()); configuration.setShowDummyLinks(sapeShowDummyLinks.booleanValue()); configuration.setEnableSape(sapeEnableService.booleanValue()); return configuration; } TransactionalConfigurationService(
            JCommuneProperty sapeAccountId,
            JCommuneProperty sapeTimeout, 
            JCommuneProperty sapeHostUrl,
            JCommuneProperty sapeNumberOrLinks,
            JCommuneProperty sapeShowOnMainPage,
            JCommuneProperty sapeShowDummyLinks,
            JCommuneProperty sapeEnableService); @Override @PreAuthorize("hasPermission(#componentId, 'COMPONENT', 'GeneralPermission.ADMIN')") SapeConfiguration getSapeConfiguration(long componentId); @Override @PreAuthorize("hasPermission(#componentId, 'COMPONENT', 'GeneralPermission.ADMIN')") void updateSapeConfiguration(SapeConfiguration configuration, long componentId);  }### Answer:
@Test public void testGetSapeConfiguration() { SapeConfiguration configuration = configurationService.getSapeConfiguration(COMPONENT_ID); assertEquals(configuration.getAccountId(), SAPE_ACCOUNT_ID); assertEquals(configuration.getTimeout(), SAPE_TIMEOUT); assertEquals(configuration.getHostUrl(), SAPE_HOST_URL); assertEquals(configuration.getNumberOfLinks(), SAPE_NUMBER_OF_LINKS); assertEquals(configuration.isShowOnMainPage(), SAPE_SHOW_ON_MAIN_PAGE); assertEquals(configuration.isShowDummyLinks(), SAPE_SHOW_DUMMY_LINKS); }