sw.start(Integer.toString(nAuthorities) + " authorities");
runWithStack(minimalStack);
System.out.println(sw.shortSummary());
sw.stop();
}
System.out.println(sw.prettyPrint());
}
private List<GrantedAuthority> createRoles(int howMany) {
// This is always the worst case scenario - the required role is ROLE_1, but they are created in reverse order
GrantedAuthority[] roles = new GrantedAuthority[howMany];