    # File lib/fog/aws/requests/elb/create_load_balancer.rb, line 60
            def create_load_balancer(availability_zones, lb_name, listeners = [], options = {})
              response = Excon::Response.new
              response.status = 200

              raise Fog::AWS::ELB::IdentifierTaken if self.data[:load_balancers].has_key? lb_name

              certificate_ids = Fog::AWS::IAM::Mock.data[@aws_access_key_id][:server_certificates].map {|n, c| c['Arn'] }

              listeners = [*listeners].map do |listener|
                if listener['SSLCertificateId'] and !certificate_ids.include? listener['SSLCertificateId']
                  raise Fog::AWS::IAM::NotFound.new('CertificateNotFound')
                end
                {'Listener' => listener, 'PolicyNames' => []}
              end

              dns_name = Fog::AWS::ELB::Mock.dns_name(lb_name, @region)
              self.data[:load_balancers][lb_name] = {
                'AvailabilityZones' => availability_zones,
                'Subnets' => options[:subnet_ids] || [],
                'Scheme' => options[:scheme].nil? ? 'internet-facing' : options[:scheme],
                'SecurityGroups' => options[:security_groups].nil? ? [] : options[:security_groups],
                'CanonicalHostedZoneName' => '',
                'CanonicalHostedZoneNameID' => '',
                'CreatedTime' => Time.now,
                'DNSName' => dns_name,
                'HealthCheck' => {
                  'HealthyThreshold' => 10,
                  'Timeout' => 5,
                  'UnhealthyThreshold' => 2,
                  'Interval' => 30,
                  'Target' => 'TCP:80'
                },
                'Instances' => [],
                'ListenerDescriptions' => listeners,
                'LoadBalancerName' => lb_name,
                'Policies' => {
                  'AppCookieStickinessPolicies' => [],
                  'LBCookieStickinessPolicies' => [],
                  'Proper' => []
                },
                'SourceSecurityGroup' => {
                  'GroupName' => '',
                  'OwnerAlias' => ''
                }
              }
              response.body = {
                'ResponseMetadata' => {
                  'RequestId' => Fog::AWS::Mock.request_id
                },
                'CreateLoadBalancerResult' => {
                  'DNSName' => dns_name
                }
              }

              response
            end