### Question:
WikiPage extends WikiPageReference { public String getRedirectTitle() { Matcher matcher = MediaWikiUtil.REDIRECT_PATTERN.matcher(text); return matcher.find() ? matcher.group(1) : null; } WikiPage(int pageId, int namespaceId, String title, String text); String getMarkup(); String getCleanText(); List<String> getSections(); boolean isRedirect(); String getRedirectTitle(); List<String> getAlternativeTitles(); @Deprecated String getInfoboxMarkup(); @Deprecated String getInfoboxType(); List<WikiTemplate> getInfoboxes(); List<WikiTemplate> getTemplates(String... templateNames); List<String> getCategories(); boolean isDisambiguation(); List<WikiLink> getLinks(); @Override MarkupCoordinate getCoordinate(); @Override Set<String> getTags(); @Override String toString();  }### Answer:
@Test public void testGetRedirect() { WikiPage page = new WikiPage(0, 0, "L.A.", "#REDIRECT [[Los Angeles]]"); assertEquals("Los Angeles", page.getRedirectTitle()); }