### Question:
PageReference extends AbstractLocalizedEntityReference { @Transient public WikiReference getWikiReference() { return (WikiReference) extractReference(EntityType.WIKI); } PageReference(EntityReference reference); protected  PageReference(EntityReference reference, EntityReference oldReference, EntityReference newReference);  PageReference(String pageName, WikiReference parent);  PageReference(String pageName, PageReference parent);  PageReference(String pageName, EntityReference parent);  PageReference(String pageName, EntityReference parent, Locale locale);  PageReference(EntityReference reference, Locale locale);  PageReference(String wikiName, List<String> pageNames);  PageReference(String wikiName, List<String> pageNames, Locale locale);  PageReference(String wikiName, String pageName, String... pageNames);  PageReference(LocalPageReference localPageReference, WikiReference wikiReference);  PageReference(EntityReference reference, EntityReference parent); @Override PageReference replaceParent(EntityReference oldParent, EntityReference newParent); @Override PageReference replaceParent(EntityReference newParent); @Transient WikiReference getWikiReference(); @Override String toString(); static final Type TYPE_PROVIDER; }### Answer:
@Test public void testGetWikiReference() { PageReference reference = new PageReference("wiki", "space", "page"); assertEquals(new WikiReference("wiki"), reference.getWikiReference()); }