### Question:
WikiPermission extends Permission implements Serializable { protected static int impliedMask( int mask ) { if ( ( mask & CREATE_GROUPS_MASK ) > 0 ) { mask |= CREATE_PAGES_MASK; } return mask; } 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 testImpliedMask() { Assertions.assertEquals(3, WikiPermission.impliedMask(1)); Assertions.assertEquals(2, WikiPermission.impliedMask(2)); Assertions.assertEquals(4, WikiPermission.impliedMask(4)); }