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.saveEditedUserNotifications(USER_ID,
new UserNotificationsContainer(true, false, false));
verify(userDao).saveOrUpdate(user);
assertEquals(editedUser.isAutosubscribe(), true, "Autosubscribe was not changed");
assertEquals(editedUser.isSendPmNotification(), false, "Send pm notification was not changed");