final ServiceContext serviceContext = createServiceContext();
UserSession userSession = new UserSession();
userSession.loginAs(editor);
serviceContext.setUserSession(userSession);
final UserList response = listService.exec();
java.util.List<JAXBElement<? extends User>> records = response.getUsers();
assertEquals("Expected to find a record.", 1, records.size());
User user = records.get(0).getValue();
assertEquals("record/username", editor.getUsername(), user.getUsername());