Category implements WikiConstants { public Title getTitle() throws WikiTitleParsingException { Session session = this.wiki.__getHibernateSession(); session.beginTransaction(); session.lock(hibernateCategory, LockMode.NONE); String name = hibernateCategory.getName(); session.getTransaction().commit(); Title title = new Title(name); return title; } protected  Category(Wikipedia wiki, long id); protected  Category(Wikipedia wiki, int pageID);  Category(Wikipedia wiki, String pName); int getPageId(); Set<Category> getParents(); int getNumberOfParents(); Set<Integer> getParentIDs(); Set<Category> getChildren(); int getNumberOfChildren(); Set<Integer> getChildrenIDs(); Title getTitle(); Set<Page> getArticles(); Set<Integer> getArticleIds(); int getNumberOfPages(); Iterable <Category> getDescendants(); Set<Category> getSiblings();  }
@Test public void testCategoryTitle(){ Category cat; try { cat = wiki.getCategory(A_FAMOUS_CATEGORY); assertNotNull(cat); assertEquals("testing the title","People of UKP", cat.getTitle().toString()); } catch (WikiTitleParsingException e) { fail("A WikiTitleParsingException occurred while testing the title of the category 'People of UKP': " + e.getLocalizedMessage()); } catch (WikiApiException e) { fail("A WikiApiException occurred while getting the category 'People of UKP': " + e.getLocalizedMessage()); } }