@Test
 public void testAddUser() throws Exception {
   LOGGER.debug("test: addUser");
   Integer id_user = userDao.addUser(user);
   assertNotNull(id_user);
   User newUser = userDao.getUserById(id_user);
   assertEquals(user.getLogin(), newUser.getLogin());
   assertEquals(user.getPassword(), newUser.getPassword());
   assertEquals(user.getFirstname(), newUser.getFirstname());
   assertEquals(user.getLastname(), newUser.getLastname());
 }
 @RequestMapping(value = "/user", method = RequestMethod.POST)
 @ResponseStatus(value = HttpStatus.CREATED)
 public @ResponseBody Integer addUser(@RequestBody User user) {
   LOGGER.debug("addUser(): user_id = {} ", user.getId_user());
   return userService.addUser(user);
 }