Nondiscrimination testing is a retirement plan compliance testing that is performed on an annual basis to ensure that the plans do not discriminate in favor the highly compensated employees (HCEs) with regard to eligibility, contributions or benefits.