### Question:
PagePermission extends Permission implements Serializable { public String toString() { final String wiki = ( m_wiki == null ) ? "" : m_wiki; return "(\"" + this.getClass().getName() + "\",\"" + wiki + WIKI_SEPARATOR + m_page + "\",\"" + getActions() + "\")"; } protected  PagePermission(); private  PagePermission( final String actions );  PagePermission( final String page, final String actions );  PagePermission( final Page page, final String actions ); boolean equals( final Object obj ); String getActions(); String getPage(); String getWiki(); int hashCode(); boolean implies( final Permission permission ); @Override PermissionCollection newPermissionCollection(); String toString(); static final String COMMENT_ACTION; static final String DELETE_ACTION; static final String EDIT_ACTION; static final String MODIFY_ACTION; static final String RENAME_ACTION; static final String UPLOAD_ACTION; static final String VIEW_ACTION; static final PagePermission COMMENT; static final PagePermission DELETE; static final PagePermission EDIT; static final PagePermission RENAME; static final PagePermission MODIFY; static final PagePermission UPLOAD; static final PagePermission VIEW; }### Answer:
@Test public final void testToString() { PagePermission p; p = new PagePermission( "Main", "view,edit,delete" ); Assertions.assertEquals( "(\"org.apache.wiki.auth.permissions.PagePermission\",\":Main\",\"delete,edit,view\")", p.toString() ); p = new PagePermission( "mywiki:Main", "view,edit,delete" ); Assertions.assertEquals( "(\"org.apache.wiki.auth.permissions.PagePermission\",\"mywiki:Main\",\"delete,edit,view\")", p.toString() ); }