### Question:
AllPermission extends Permission implements Serializable { public boolean equals( final Object obj ) { if( !( obj instanceof AllPermission ) ) { return false; } final AllPermission p = ( AllPermission )obj; return p.m_wiki != null && p.m_wiki.equals( 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 testEqualsObject() { AllPermission p1 = new AllPermission( "*" ); AllPermission p2 = new AllPermission( "*" ); AllPermission p3 = new AllPermission( "myWiki" ); Assertions.assertTrue( p1.equals( p2 ) ); Assertions.assertTrue( p2.equals( p1 ) ); Assertions.assertFalse( p1.equals( p3 ) ); Assertions.assertFalse( p3.equals( p1 ) ); }