public class CallbackOnListenerTest extends TestCase {
public void testPublicCallbackMethod() {
MockCallingBackListener listener = new MockCallingBackListener();
CallbackOnListener callback = new CallbackOnListener(
listener,
"publicCallback",
Object.class);
MockCallingBackEntity e = new MockCallingBackEntity();
callback.performCallback(e);
// entity itself should not be called back...
assertFalse(e.publicCallbackInvoked);
assertFalse(e.protectedCallbackInvoked);
assertFalse(e.privateCallbackInvoked);