I started to play with Mockito library yesterday, to Mock the objects and it seems to be fairly easy to use. Very initial version can be found at [1]. Mockito is MIT licensed.
Plan is to improve the code coverage of CC component. [1] https://github.com/apache/stratos/blob/cc-unit-tests/components/org.apache.stratos.cloud.controller/src/test/java/org/apache/stratos/cloud/controller/impl/CloudControllerServiceImplTest.java -- Best Regards, Nirmal Nirmal Fernando. PPMC Member & Committer of Apache Stratos, Senior Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/