def METHOD_NAME(self):
    reverse_vals = self.reverse_vals
    invoice = self.invoice
    invoice["fiscal_operation_id"] = (self.env.ref("l10n_br_fiscal.fo_venda").id,)
    for line_id in invoice.invoice_line_ids:
        line_id["fiscal_operation_id"] = (
            self.env.ref("l10n_br_fiscal.fo_venda").id,
        )
        line_id["fiscal_operation_line_id"] = self.env.ref(
            "l10n_br_fiscal.fo_venda_venda"
        ).id
    invoice.action_post()
    self.assertEqual(
        invoice.state,
        "posted",
        "Invoice should be in state Posted",
    )
    reverse_vals.update(
        {
            "force_fiscal_operation_id": self.env.ref(
                "l10n_br_fiscal.fo_simples_remessa"
            ).id
        }
    )
    move_reversal = (
        self.env["account.move.reversal"]
        .with_context(active_model="account.move", active_ids=invoice.ids)
        .create(reverse_vals)
    )
    reversal = move_reversal.reverse_moves()
    reverse_move = self.env["account.move"].browse(reversal["res_id"])
    self.assertTrue(reverse_move)
    self.assertEqual(
        reverse_move.operation_name,
        "Simples Remessa",
        "The force fiscal operation process was unsuccessful.",
    )