{
    "description": "Verifies only allowed bid.request.ext.prebid values are passed to the bidder, leaving other ext fields untouched.",
    "incomingRequest": {
        "ortbRequest": {
            "id": "test-request-id",
            "site": {
                "page": "test.testpage.com"
            },
            "imp": [
                {
                    "id": "imp-id",
                    "video": {
                        "mimes": [
                            "video/mp4"
                        ]
                    },
                    "ext": {
                        "prebid": {
                            "bidder": {
                                "appnexus": {
                                    "placementId": 1
                                }
                            }
                        }
                    }
                }
            ],
            "ext": {
                "other": "test-other",
                "prebid": {
                    "data": {
                        "eidpermissions": [
                            {
                                "source": "test-source",
                                "bidders": [
                                    "appnexus"
                                ]
                            }
                        ]
                    },
                    "integration": "test-integration",
                    "channel": {
                        "name": "test-name",
                        "version": "test-version"
                    },
                    "debug": true,
                    "currency": {
                        "rates": {
                            "FOO": {
                                "BAR": 42
                            }
                        },
                        "usepbsrates": true
                    },
                    "bidderparams": {
                        "appnexus": {
                            "param1": 1,
                            "paramA": "A"
                        },
                        "rubicon": {
                            "not": "permitted-for-appnexus"
                        }
                    },
                    "sdk": {
                        "renderers": [
                            {
                                "name": "test-name",
                                "version": "test-version",
                                "data" : {
                                    "complex": "data"
                                }
                            }
                        ]
                    }
                }
            }
        }
    },
    "outgoingRequests": {
        "appnexus": {
            "expectRequest": {
                "ortbRequest": {
                    "id": "test-request-id",
                    "site": {
                        "page": "test.testpage.com"
                    },
                    "imp": [
                        {
                            "id": "imp-id",
                            "video": {
                                "mimes": [
                                    "video/mp4"
                                ]
                            },
                            "ext": {
                                "bidder": {
                                    "placementId": 1
                                }
                            }
                        }
                    ],
                    "ext": {
                        "other": "test-other",
                        "prebid": {
                            "integration": "test-integration",
                            "channel": {
                                "name": "test-name",
                                "version": "test-version"
                            },
                            "debug": true,
                            "currency": {
                                "rates": {
                                    "FOO": {
                                        "BAR": 42
                                    }
                                },
                                "usepbsrates": true
                            },
                            "bidderparams": {
                                "param1": 1,
                                "paramA": "A"
                            },
                            "sdk": {
                                "renderers": [
                                    {
                                        "name": "test-name",
                                        "version": "test-version",
                                        "data": {
                                            "complex": "data"
                                        }
                                    }
                                ]
                            }
                        }
                    }
                }
            },
            "mockResponse": {
                "pbsSeatBids": [
                    {
                        "pbsBids": [
                            {
                                "ortbBid": {
                                    "id": "apn-bid",
                                    "impid": "imp-id",
                                    "price": 0.3,
                                    "w": 200,
                                    "h": 250,
                                    "crid": "creative-1"
                                },
                                "bidType": "video"
                            }
                        ],
                        "seat": "appnexus"
                    }
                ]
            }
        }
    },
    "response": {
        "bids": {
            "id": "test-request-id",
            "seatbid": [
                {
                    "seat": "appnexus",
                    "bid": [
                        {
                            "id": "apn-bid",
                            "impid": "imp-id",
                            "price": 0.3,
                            "w": 200,
                            "h": 250,
                            "crid": "creative-1",
                            "ext": {
                                "origbidcpm": 0.3,
                                "prebid": {
                                    "meta": {
                                    },
                                    "type": "video"
                                }
                            }
                        }
                    ]
                }
            ]
        }
    }
}