@Bean
public InitializingBean populateTestData(UserService userService) {
return () -> {
if (!userService.exists("anonymous").get()) {
userService.create(new User("anonymous", "jdqsjkdjsqkjd", Arrays.asList("ANONYMOUS")));
userService.create(new User("seb", "s3b", Arrays.asList("USER", "ADMIN")));
userService.create(new User("adeline", "ad3l1n3", Arrays.asList("USER")));
userService.create(new User("johanna", "j0hanna", Arrays.asList("USER")));
userService.create(new User("michel", "m1ch3l", Arrays.asList("USER")));
}
};
}