when(encryptionService.encryptPassword(NEW_PASSWORD)).thenReturn(NEW_PASSWORD_MD5_HASH);
when(userDao.isExist(USER_ID)).thenReturn(Boolean.TRUE);
when(userDao.get(USER_ID)).thenReturn(user);
JCUser editedUser = userService.saveEditedUserSecurity(USER_ID,
new UserSecurityContainer(PASSWORD, NEW_PASSWORD));
verify(userDao).saveOrUpdate(user);
assertUserProfileAndNotificationsAreSame(user, editedUser);
assertEquals(editedUser.getLanguage(), Language.ENGLISH, "language was changed");