def METHOD_NAME(patch_base_class_upstream_primary_key, stream, requests_mock):
    requests_mock.get(
        "https://dummy",
        json={
            "TotalResults": 2,
            "CollectionField": [
                {
                    "Nested": {
                        "PrimaryKey": 42,
                    },
                },
            ],
        },
    )
    resp = requests.get("https://dummy")
    inputs = {"response": resp}
    expected_parsed_object = {"Nested": {"PrimaryKey": 42}, "test_primary_key": 42}
    assert next(stream.parse_response(**inputs)) == expected_parsed_object