### Question:
UserServiceImpl implements UserService { @Override public List<User> getUsers() { return userRepository.findAll(); } @Autowired  UserServiceImpl(UserRepository userRepository); @Override List<User> getUsers(); @Override User getUser(long id); @Override User addUser(String nickname, String email, String password);  }### Answer:
@Test public void getUsers() { List<User> expected = new ArrayList<>(); expected.add(new User(1L, "user1", "user1@mail.com", "pass")); expected.add(new User(2L, "user2", "user2@mail.com", "test")); List<User> actual = userService.getUsers(); assertEquals(expected, actual); }