def METHOD_NAME(self, monkeypatch, stdin, capfd):
    monkeypatch.setattr(botocore, "__version__", self.OLD_BOTOCORE)
    monkeypatch.setattr(boto3, "__version__", self.OLD_BOTO3)
    # Create a minimal module that we can call
    module = AnsibleAWSModule(argument_spec=dict(), check_boto3=False)
    with pytest.raises(SystemExit):
        module.exit_json()
    out, _err = capfd.readouterr()
    return_val = json.loads(out)
    assert return_val.get("exception") is None
    assert return_val.get("invocation") is not None
    assert return_val.get("failed") is None
    assert return_val.get("error") is None
    assert return_val.get("warnings") is None