It is great that you added the tests for the Joyent API class, however, this kind of unit tests are deprecated and we no longer tests the APIs this way. Now we use [mockwebserver](https://code.google.com/p/mockwebserver/) for unit testing as it gives us a more complete test path. You can take a look at the OpenStack Swift tests to see how it works (for example you can take a look at the [ContainerApiMockTest](https://github.com/jclouds/jclouds-labs-openstack/blob/master/openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/ContainerApiMockTest.java) test class).