### Question:
GroupPermission extends Permission implements Serializable { public String toString() { String wiki = ( m_wiki == null ) ? "" : m_wiki; return "(\"" + this.getClass().getName() + "\",\"" + wiki + WIKI_SEPARATOR + m_group + "\",\"" + getActions() + "\")"; } protected  GroupPermission(); private  GroupPermission( String actions );  GroupPermission( String group, String actions ); boolean equals( Object obj ); String getActions(); String getGroup(); String getWiki(); int hashCode(); boolean implies( Permission permission ); String toString(); static final String MEMBER_TOKEN; static final String DELETE_ACTION; static final String EDIT_ACTION; static final String VIEW_ACTION; static final GroupPermission DELETE; static final GroupPermission EDIT; static final GroupPermission VIEW; }### Answer:
@Test public final void testToString() { GroupPermission p; p = new GroupPermission( "Test", "view,edit,delete" ); Assertions.assertEquals( "(\"org.apache.wiki.auth.permissions.GroupPermission\",\"*:Test\",\"delete,edit,view\")", p .toString() ); p = new GroupPermission( "mywiki:Test", "view,edit,delete" ); Assertions.assertEquals( "(\"org.apache.wiki.auth.permissions.GroupPermission\",\"mywiki:Test\",\"delete,edit,view\")", p .toString() ); }