Or if you believe the superior power will not respond militarily, as in the Falklands in 1982.
Unfortunately for the junta, they weren't the only unpopular right-wing government who saw warfare and jingoism as a handy distraction from internal economic and social problems.