View/manipulate session data in integration tests?

how can I view or change the contents of the session in an integration
test?
I know in functional tests you pass a hash containing the session data
to
get/post but how is it done in integrations tests?

can someone point me in the right direction?