{
    "description": "Verifies only allowed bid.request.imp[].ext.prebid values are passed to the bidder, dropping other fields.",
    "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
                                }
                            },
                            "storedrequest": {
                                "id": "any-id"
                            },
                            "storedauctionresponse": {
                                "id": "any-id"
                            },
                            "storedbidresponse": [
                                {
                                    "id": "any-id",
                                    "bidder": "foo"
                                }
                            ],
                            "is_rewarded_inventory": true,
                            "options": {
                                "echovideoattrs": true
                            },
                            "unknown": "any-unknown"
                        },
                        "data": "any-data",
                        "context": "any-context",
                        "skadn": "any-skadn",
                        "gpid": "any-gpid",
                        "tid": "any-tid"
                    }
                }
            ]
        }
    },
    "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
                                },
                                "prebid": {
                                    "is_rewarded_inventory": true,
                                    "options": {
                                        "echovideoattrs": true
                                    }
                                },
                                "data": "any-data",
                                "context": "any-context",
                                "skadn": "any-skadn",
                                "gpid": "any-gpid",
                                "tid": "any-tid"
                            }
                        }
                    ]
                }
            },
            "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"
                                }
                            }
                        }
                    ]
                }
            ]
        }
    }
}