>Many of the classes need connection to vSphere to run. We use EasyMock for this kind of tests. You should be able to mock the vSphere responses that are relevant to each test and properly unit test your funcitonality. You can take a look at the [EventDonePredicateTest](https://github.com/jclouds/jclouds-labs/blob/master/digitalocean/src/test/java/org/jclouds/digitalocean/compute/config/EventDonePredicateTest.java) in the DigitalOcean provider, to have an idea of how we use it.
>I didn't know how to inject low level classes. Instead of injecting, could you build a new object and build the parameters? If they are too complex, perhaps passing mock objects (again with EasyMock) could make sense for the tests. Otherwise, we can go step by step, add the tests for the other classes first, and once they're done, have a look at those that need injection? Thanks for you're work here @igreenfield. It's very good to see progress on this! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/61#issuecomment-47524132
