testManager.create();
Contexts.getSessionContext().set( "roleBasedPermissionManager",
testManager );
//now lets see if we can access this asset with the permissions
@SuppressWarnings("unused")
RuleAsset asset2 = assetRepositoryService.loadRuleAsset( uuid2 );
try {
@SuppressWarnings("unused")
RuleAsset asset1 = assetRepositoryService.loadRuleAsset( uuid1 );
fail( "Did not catch expected exception" );
} catch ( AuthorizationException e ) {
}
} finally {