def METHOD_NAME(self):
    """Receiving a 'Mancata consegna' sets the state of the
    e-invoice to 'recipient_error'"""
    self.env.company.vat = "IT14627831002"
    self.set_sequences(2621, "2019-01-08")
    e_invoice = self._create_e_invoice()
    self.set_e_invoice_file_id(e_invoice, "IT14627831002_02621.xml")
    e_invoice.send_to_sdi()
    incoming_mail = self._get_file("POSTA CERTIFICATA_mancata_consegna.txt")
    self.env["mail.thread"].with_context(
        fetchmail_server_id=self.PEC_server.id
    ).message_process(False, incoming_mail)
    self.assertEqual(e_invoice.state, "recipient_error")