((SeteUserProfileServiceImpl)sups).setUserDao(mockUserDao);
SeteUserDao mockSeteUserDao = createMock(SeteUserDao.class);
((SeteUserProfileServiceImpl)sups).setSeteUserDao(mockSeteUserDao);
PasswordEncoder mockPasswordEncoder = createMock(PasswordEncoder.class);
((SeteUserProfileServiceImpl)sups).setPasswordEncoder(mockPasswordEncoder);
expect(mockUserDao.findById(Integer.valueOf(csupvo.getUserId()))).andReturn(aSeteUser);
expect(mockPasswordEncoder.encodePassword(csupvo.getOldPassword(), null)).andReturn("sete");
expect(mockPasswordEncoder.encodePassword(csupvo.getNewPassword(), null)).andReturn("newSete");
replay(mockUserDao);
replay(mockPasswordEncoder);
sups.changeSeteUserPassword(csupvo);