Integration testing an api

Hello,
I’m building a web app with an api that models the basecamp api.
Everything works fine from the command line using curl.

curl -H ‘Accept: application/xml’ -H ‘Content-Type: application/xml’
-u username:password -d ‘…’ http://url

My question is how to setup integration testing against the api. Does
the integration testing framework support HTTP authentication (Basic)?

Thanks,
Zack