def METHOD_NAME(self, api, config, logger_mock, fb_marketing):
    api.side_effect = RuntimeError("Something went wrong!")
    with pytest.raises(RuntimeError, match="Something went wrong!"):
        fb_marketing.check_connection(logger_mock, config=config)