when(userDao.isExist(USER_ID)).thenReturn(Boolean.TRUE);
when(userDao.get(USER_ID)).thenReturn(user);
String newAvatar = new String(new byte[12]);
JCUser editedUser = userService.saveEditedUserProfile(USER_ID,
new UserInfoContainer(FIRST_NAME, LAST_NAME, EMAIL, SIGNATURE, newAvatar, 50, "location"));
verify(userDao).saveOrUpdate(user);
assertUserSecurityAndNotificationsAreSame(user, editedUser);
assertEquals(editedUser.getLanguage(), Language.ENGLISH, "language was changed");