### Question:
GroupPermission extends Permission implements Serializable { protected static int impliedMask( int mask ) { if ( ( mask & DELETE_MASK ) > 0 ) { mask |= EDIT_MASK; } if ( ( mask & EDIT_MASK ) > 0 ) { mask |= VIEW_MASK; } return mask; } 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 testImpliedMask() { int result = ( GroupPermission.DELETE_MASK | GroupPermission.EDIT_MASK | GroupPermission.VIEW_MASK ); Assertions.assertEquals( result, GroupPermission.impliedMask( GroupPermission.DELETE_MASK ) ); result = ( GroupPermission.EDIT_MASK | GroupPermission.VIEW_MASK ); Assertions.assertEquals( result, GroupPermission.impliedMask( GroupPermission.EDIT_MASK ) ); }