@Test
public void testGetCategories() {

	Set<Category> categories = page.getCategories();
	assertNotNull(categories);
	assertFalse(categories.isEmpty());
	assertEquals(2, categories.size());
	try {
		boolean foundSIR = false;
		boolean foundDisambiguation = false;
		for (Category c : categories) {
			String ct = c.getTitle().getPlainTitle();
			assertNotNull(ct);
			if ("SIR".equals(ct)) {
				foundSIR = true;
			}
			if ("Disambiguation".equals(ct)) {
				foundDisambiguation = true;
			}
		}
		assertTrue(foundSIR);
		assertTrue(foundDisambiguation);
	} catch (WikiTitleParsingException e) {
		fail("A WikiTitleParsingException occurred while accessing the category title of the page: "
				+ e.getLocalizedMessage());
	}
}