### Question:
GroupPermission extends Permission implements Serializable { protected static int createMask( String actions ) { if ( actions == null || actions.length() == 0 ) { throw new IllegalArgumentException( "Actions cannot be blank or null" ); } int mask = 0; String[] actionList = actions.split( ACTION_SEPARATOR ); for( String action : actionList ) { if ( action.equalsIgnoreCase( VIEW_ACTION ) ) { mask |= VIEW_MASK; } else if ( action.equalsIgnoreCase( EDIT_ACTION ) ) { mask |= EDIT_MASK; } else if ( action.equalsIgnoreCase( DELETE_ACTION ) ) { mask |= DELETE_MASK; } else { throw new IllegalArgumentException( "Unrecognized action: " + action ); } } 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 testCreateMask() { Assertions.assertEquals( 1, GroupPermission.createMask( "view" ) ); Assertions.assertEquals( 7, GroupPermission.createMask( "view,edit,delete" ) ); Assertions.assertEquals( 7, GroupPermission.createMask( "edit,delete,view" ) ); Assertions.assertEquals( 2, GroupPermission.createMask( "edit" ) ); Assertions.assertEquals( 6, GroupPermission.createMask( "edit,delete" ) ); }