ServiceImplementation impl = getServiceImplementation();
CategoryItem rootCategory = impl.getRulesRepository().loadCategory( "/" );
CategoryItem cat = rootCategory.addCategory("testQueryMetaDataPagedResultsWithAnalystPermissionRootCategoryRootCat", "description");
cat.addCategory( "testQueryMetaDataPagedResultsWithAnalystPermissionRootCategoryCat1",
"yeah");
cat.addCategory( "testQueryMetaDataPagedResultsWithAnalystPermissionRootCategoryCat2",
"yeah");
// Mock up SEAM contexts for role base authorization
Map<String, Object> application = new HashMap<String, Object>();
Lifecycle.beginApplication( application );