try {
String[] roles = SecurityHelper.getInstance().runAsUser( "admin", new Callable<String[]>() {
@Override
public String[] call() throws Exception {
return mapper.mapConnectionRoles( PentahoSessionHolder.getSession(), "SteelWheelsRoles" );
}
} );
Assert.assertNotNull( roles );
Assert.assertEquals( 1, roles.length );
Assert.assertEquals( "Role1", roles[0] );