midentity );
Contexts.getSessionContext().set( "org.drools.guvnor.client.rpc.RepositoryService",
impl );
List<RoleBasedPermission> pbps = new ArrayList<RoleBasedPermission>();
pbps.add( new RoleBasedPermission( "jervis",
RoleType.PACKAGE_READONLY.getName(),
package7Name,
null ) );
pbps.add( new RoleBasedPermission( "jervis",
RoleType.ANALYST.getName(),
null,
category7Name ) );
pbps.add( new RoleBasedPermission( "jervis",
RoleType.ANALYST.getName(),
null,
category8Name ) );
MockRoleBasedPermissionStore store = new MockRoleBasedPermissionStore( pbps );