Bravo for providing a test.

This should really mock the HttpSocket instance and verify the calls made to it - rather than be a functional test and actually establish a connection.