+*/
+ System.out.println("==== CALLBACKS ====");
+ CallBackInterface cbSingle = new CallBack(2354);
+ tcstub.registerCallback(cbSingle);
+ System.out.println("Return value from callback: " + tcstub.callBack());
+ //CallBackInterface cbSingle2 = new CallBack(2355);
+ //tcstub.registerCallback(cbSingle2);
+ //System.out.println("Return value from callback: " + tcstub.callBack());
+ /*CallBackInterface cb1 = new CallBack(23);
+ CallBackInterface cb2 = new CallBack(33);
+ CallBackInterface cb3 = new CallBack(43);
+ CallBackInterface[] cb = { cb1, cb2, cb3 };
+ tcstub.registerCallbackArray(cb);
+ System.out.println("Return value from callback: " + tcstub.callBack());*/
+ List<CallBackInterface> cblist = new ArrayList<CallBackInterface>();
+ CallBackInterface cb1 = new CallBack(23); cblist.add(cb1);
+ CallBackInterface cb2 = new CallBack(33); cblist.add(cb2);
+ CallBackInterface cb3 = new CallBack(43); cblist.add(cb3);
+ tcstub.registerCallbackList(cblist);
+ System.out.println("Return value from callback: " + tcstub.callBack());