### Question:
PermissionsCheckboxHandler { public void setAllChecked( boolean value ) { for ( PermissionsCheckboxes permissionsCheckboxes : ALL_PERMISSIONS ) { permissionsCheckboxes.permissionCheckbox.setChecked( value ); } } PermissionsCheckboxHandler( XulCheckbox readCheckbox, XulCheckbox writeCheckbox, XulCheckbox deleteCheckbox,
      XulCheckbox manageCheckbox ); EnumSet<RepositoryFilePermission> processCheckboxes(); EnumSet<RepositoryFilePermission> processCheckboxes( boolean enableAppropriate ); void updateCheckboxes( EnumSet<RepositoryFilePermission> permissionEnumSet ); void updateCheckboxes( boolean enableAppropriate, EnumSet<RepositoryFilePermission> permissionEnumSet ); void setAllChecked( boolean value ); void setAllDisabled( boolean value );  }### Answer:
@Test public void testSetAllUncheckedUnchecksAll() { boolean checked = false; permissionsCheckboxHandler.setAllChecked( checked ); verify( readCheckbox, times( 1 ) ).setChecked( checked ); verify( writeCheckbox, times( 1 ) ).setChecked( checked ); verify( deleteCheckbox, times( 1 ) ).setChecked( checked ); verify( manageCheckbox, times( 1 ) ).setChecked( checked ); }
@Test public void testSetAllCheckedChecksAll() { boolean checked = true; permissionsCheckboxHandler.setAllChecked( checked ); verify( readCheckbox, times( 1 ) ).setChecked( checked ); verify( writeCheckbox, times( 1 ) ).setChecked( checked ); verify( deleteCheckbox, times( 1 ) ).setChecked( checked ); verify( manageCheckbox, times( 1 ) ).setChecked( checked ); }