Extract mock request/response
Test the code exchange.