}
@Test
public void testQueryMetaDataPagedResultsWithAnalystPermissionRootCategory() throws Exception {
CategoryItem rootCategory = rulesRepository.loadCategory( "/" );
String categoryName = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryMetaDataPagedResultsWithAnalystPermissionRootCategoryCategory";
String categoryDescription = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryMetaDataPagedResultsWithAnalystPermissionRootCategoryCategoryDescription";
CategoryItem cat = rootCategory.addCategory( categoryName,
categoryDescription );
String subCategory1Name = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryMetaDataPagedResultsWithAnalystPermissionRootCategoryCat1";
cat.addCategory( subCategory1Name,
"yeah" );
String subCategory2Name = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryMetaDataPagedResultsWithAnalystPermissionRootCategoryCat2";
cat.addCategory( subCategory2Name,
"yeah" );
logoutAs( ADMIN_USERNAME );
final String USERNAME = "queryAndFindUser";
loginAs( USERNAME );