### Question:
WikiPermission extends Permission implements Serializable { public String getActions() { return m_actionString; } WikiPermission( String wiki, String actions ); boolean equals( Object obj ); String getActions(); String getWiki(); int hashCode(); boolean implies( Permission permission ); PermissionCollection newPermissionCollection(); String toString(); static final String CREATE_GROUPS_ACTION; static final String CREATE_PAGES_ACTION; static final String LOGIN_ACTION; static final String EDIT_PREFERENCES_ACTION; static final String EDIT_PROFILE_ACTION; static final String WILDCARD; static final WikiPermission CREATE_GROUPS; static final WikiPermission CREATE_PAGES; static final WikiPermission LOGIN; static final WikiPermission EDIT_PREFERENCES; static final WikiPermission EDIT_PROFILE; }### Answer:
@Test public void testGetActions() { WikiPermission p1 = new WikiPermission("*", "createPages,createGroups,editProfile"); Assertions.assertEquals("creategroups,createpages,editprofile", p1.getActions()); WikiPermission p2 = new WikiPermission("*", "createGroups,editProfile,createPages"); Assertions.assertEquals("creategroups,createpages,editprofile", p2.getActions()); }