{
final UsernamePasswordAuthenticationToken auth =
context.mock(UsernamePasswordAuthenticationToken.class);
final UserDetailsService uds = context.mock(UserDetailsService.class);
final UserDetails ud = context.mock(UserDetails.class);
final UserDetailsChecker checker = context.mock(UserDetailsChecker.class);
context.checking(new Expectations()
{
{
oneOf(auth).getName();