### Question:
AllPermission extends Permission implements Serializable { public String toString() { return "(\"" + this.getClass().getName() + "\",\"" + m_wiki + "\")"; } protected  AllPermission();  AllPermission( final String wiki ); boolean equals( final Object obj ); String getActions(); String getWiki(); int hashCode(); boolean implies( final Permission permission ); PermissionCollection newPermissionCollection(); String toString();  }### Answer:
@Test public void testToString() { AllPermission p = new AllPermission( "myWiki" ); String result = "(\"org.apache.wiki.auth.permissions.AllPermission\",\"myWiki\")"; Assertions.assertEquals( result, p.toString() ); p = new AllPermission( "*" ); result = "(\"org.apache.wiki.auth.permissions.AllPermission\",\"*\")"; Assertions.assertEquals( result, p.toString() ); }