MetaData implements WikiConstants { public Category getDisambiguationCategory() throws WikiApiException { Session session = this.wiki.__getHibernateSession(); session.beginTransaction(); session.lock(hibernateMetaData, LockMode.NONE); String disambCategoryTitle = hibernateMetaData.getDisambiguationCategory(); session.getTransaction().commit(); return wiki.getCategory(disambCategoryTitle); } protected  MetaData(Wikipedia wiki); long getNumberOfCategories(); long getNumberOfPages(); long getNumberOfDisambiguationPages(); long getNumberOfRedirectPages(); Category getDisambiguationCategory(); Category getMainCategory(); String getVersion(); Language getLanguage();  }
@Test public void testGetDisambiguationCategory() { try { Category c = metaData.getDisambiguationCategory(); assertNotNull(c); assertEquals(200, c.getPageId()); } catch (WikiApiException e) { fail("A WikiApiException occurred while getting the disambiguation category: " + e.getLocalizedMessage()); } }