return new SearchResult<User>(users, totalResult);
}
private static SearchResult<Authority> createSearchResultWithTwoAuthorities() {
List<Authority> authorities = new ArrayList<Authority>();
Authority foo = new Authority();
foo.setAuthority("FOO");
Authority bar = new Authority();
bar.setAuthority("BAR");
authorities.add(foo);
authorities.add(bar);
return new SearchResult<Authority>(authorities, authorities.size());
}