@yousuf.haque: if you inject in the constructor as a default value you can easily override the construction of the object without needing a model or anything registered. Or if you want, you can just setup the global registry with anything a test needs in the @BeforeClass static method (JUnit terminology)