def METHOD_NAME(self):
    """When there are missing references, an error should be raised."""
    duplicated_references = [
        ref
        for ref in [self.reference_1]
        for _ in range(generate_random_integer(2, 5))
    ]
    sac = self._make_sac(
        [self.reference_1, self.reference_2, self.reference_3],
        duplicated_references,
    )
    errors = check_ref_number_in_findings_text(sac_validation_shape(sac))
    # Check if the error list mentions self.reference_2, self.reference_3 as missing from findings_text but present in findings_uniform_guidance
    self.assertEqual(len(errors), 1)
    expected_error = err_missing_or_extra_references(
        {self.reference_2, self.reference_3},
        None,
        SECTION_NAMES.AUDIT_FINDINGS_TEXT,
    )
    self.assertIn({"error": expected_error}, errors)