def METHOD_NAME(self):
    """Receiving a 'Ricevuta di consegna' sets the state of the
    e-invoice to 'validated'"""
    e_invoice = self._create_e_invoice()
    self.set_e_invoice_file_id(e_invoice, "IT03339130126_00009.xml")
    e_invoice.send_to_sdi()
    incoming_mail = self._get_file(
        "POSTA CERTIFICATA_ Ricevuta di consegna 6782414.txt"
    )
    self.env["mail.thread"].with_context(
        fetchmail_server_id=self.PEC_server.id
    ).message_process(False, incoming_mail)
    self.assertEqual(e_invoice.state, "validated")