I have the method similar to following structure.
method1(Object obj,byte[] myarray)
{
mymanager.dbcall1();
mymanager2.dbcall2();
}
Now I want to write the JUNIT test case which can actually mock these managers who are doing the dbcalls ?Finally I want to compare the results. These managers are available only at run time of the application.