def METHOD_NAME(
        self, domain, alternate_domains, method, certificate_arn,
        validation_domains=None, error_code=None):
    expected_params = {
        'DomainName': domain,
        'ValidationMethod': method,
        'SubjectAlternativeNames': alternate_domains}
    if validation_domains is not None:
        expected_params['DomainValidationOptions'] = [{
            'DomainName': key,
            'ValidationDomain': value
        } for key, value in validation_domains.items()]
    response = {'CertificateArn': certificate_arn}
    self._stub_bifurcator(
        'request_certificate', expected_params, response, error_code=error_code)