### Question:
PageReference extends AbstractLocalizedEntityReference { @Override public String toString() { return TOSTRING_SERIALIZER.serialize(this); } 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 testToString() { PageReference reference1 = new PageReference("wiki", "space", "page"); assertEquals("wiki:space/page", reference1.toString()); PageReference reference2 = new PageReference("wiki", Arrays.asList("space", "page"), Locale.FRANCE); assertEquals("wiki:space/page;fr_FR", reference2.toString()); }