It shall be a discriminatory practice in violation of this section: (1) For an employer, by the employer or the employer's agent, except in the case of a bona fide occupational qualification or need, to refuse to hire or employ or to bar or to discharge from employment any individual or to discriminate against any individual in compensation or in terms, conditions or privileges of employment because of the individual's sexual orientation or civil union status, (2) for any employment agency, except in the case of a bona fide occupational qualification or need, to fail or refuse to classify properly or refer for employment or otherwise to discriminate against any individual because of the individual's sexual orientation or civil union status, (3) for a labor organization, because of the sexual orientation or civil union status of any individual to exclude from full membership rights or to expel from its membership such individual or to discriminate in any way against any of its members or against any employer or any individual employed by an employer, unless such action is based on a bona fide occupational qualification, or (4) for any person, employer, employment agency or labor organization, except in the case of a bona fide occupational qualification or need, to advertise employment opportunities in such a manner as to restrict such employment so as to discriminate against individuals because of their sexual orientation or civil union status. In any action for a discriminatory practice in violation of subdivision (1) of this section involving an automated employment-related decision technology, as defined in
section 7 of this act, the use of an automated employment-related decision technology shall not be a defense against a complaint. The commission or court may consider evidence of anti-bias testing or similar proactive efforts to avoid such discriminatory practice, including, but not limited to, the quality, efficacy, recency and scope of such testing or efforts, the results of such testing or efforts and the response thereto.