### Question:
UserServiceImpl implements UserService { @Override public String incrementReport(String id,String idreport) { Users u = getByIdUser(id); if (u.getId().equals("0000")) { return "user not found"; }else { String report = ""; report = u.getUserReport() + idreport + " "; if (!(u.getUserReport().contains(idreport))){ Query query = em.createQuery( "UPDATE Users a SET a.userReport = :report , a.report = :nbreport " + whereId); query.setParameter("id", id).setParameter("report",report).setParameter("nbreport", u.getReport() + 1).executeUpdate(); return "incremented report"; }else { return "user has already report"; } } }  @Override List<Users> getAll(); @Override String create(Users us); @Override Users getByIdUser(String id); @Override String incrementReport(String id,String idreport); @Override String updateImage(Users us);  }### Answer:
@Test void incrementReportTest() { initDataStore3(); Users users = Userserviceimpl.getByIdUser("123456"); if (!(users.getId().equals("0000"))){ Userserviceimpl.incrementReport("123456","123457"); Userserviceimpl.incrementReport("123459", "123457"); Users users1 = Userserviceimpl.getByIdUser("123456"); Users users2 = Userserviceimpl.getByIdUser("123459"); assertEquals("",users1.getUserReport()); assertEquals(null,users2.getUserReport()); } }