verify(userRepository);
}
@Test
public void loadUserDetails_valid() {
final User authUser=new UserImpl(USER_ID,USER_NAME);
authUser.setOpenId(OPENID_VALID);
expect(userRepository.getByOpenId(OPENID_VALID)).andReturn(authUser).anyTimes();
replay(userRepository);
OpenIDAuthenticationToken postAuthToken = new OpenIDAuthenticationToken(OpenIDAuthenticationStatus.SUCCESS,OPENID_VALID,
"Some message", new ArrayList<OpenIDAttribute>());
UserDetails result = service.loadUserDetails(postAuthToken);