    # File lib/fog/aws/requests/elb/deregister_instances_from_load_balancer.rb, line 36
            def deregister_instances_from_load_balancer(instance_ids, lb_name)
              raise Fog::AWS::ELB::NotFound unless load_balancer = self.data[:load_balancers][lb_name]
              instance_ids = [*instance_ids]
              instance_ids.each do |instance|
                raise Fog::AWS::ELB::InvalidInstance unless Fog::Compute::AWS::Mock.data[@region][@aws_access_key_id][:instances][instance]
              end

              response = Excon::Response.new
              response.status = 200

              load_balancer['Instances'].delete_if { |i| instance_ids.include? i['InstanceId'] }

              response.body = {
                'ResponseMetadata' => {
                  'RequestId' => Fog::AWS::Mock.request_id
                },
                'DeregisterInstancesFromLoadBalancerResult' => {
                  'Instances' => load_balancer['Instances'].dup
                }
              }

              response
            end