### Question:
UserService { public void delete(int id) { userDao.delete(id); }  User registrate(String name, String password); User signIn(String name, String password); User read(int id); void update(User user); void delete(int id); void setUserDao(UserDao userDao); List<User> readAll();  }### Answer:
@Test void deleteTest() { int id = 42; userService.delete(id); Mockito.verify(entityManager).remove(Mockito.any()); }