### Question:
ConfigurationService { public Configuration createConfiguration(Configuration configuration, User user) { Configuration result = configurationRepository.save(configuration); logger.info("Created configuration " + result.getName() + " (id: " + result.getId() + ")"); activityService.createActivity(user, result, Action.CREATED); return result; }  Collection<Configuration> getAllConfigurations(); Configuration getConfigurationById(Long configurationId); Configuration getConfigurationByName(String name); Configuration createConfiguration(Configuration configuration, User user); Configuration updateConfigurationById(Configuration configuration, User user); void deleteConfigurationById(Long configurationId, User user);  }### Answer:
@Test public void createConfiguration_expectConfigurationToBeCreated() { Configuration configurationArgument = new Configuration(); configurationArgument.setName("name"); configurationArgument.setValue("3"); when(configurationRepository.save(configurationArgument)).thenReturn(configurationArgument); Configuration actual = configurationService.createConfiguration(configurationArgument, mockedUser); assertConfigurationsWithoutId(configurationArgument, actual); }