I’m refactoring some code and would like to junit test some methods but they are using objects that are created by the underlying framework. If I am unable to re-create these objects myself does this mean I cannot write unit tests on methods that take as an argument the framework generated object ?
So for example a jetspeed Page object
Have you considered using Mockito?