### Question:
FrameAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.FrameListener { public void menuBarChanged(org.apache.pivot.wtk.Frame arg0, org.apache.pivot.wtk.MenuBar arg1) { if (menuBarChanged != null) { menuBarChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getMenuBarChanged(); void setMenuBarChanged(CallableWithArgs<Void> menuBarChanged); void menuBarChanged(org.apache.pivot.wtk.Frame arg0, org.apache.pivot.wtk.MenuBar arg1);  }### Answer:
@Test public void testMenuBarChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getMenuBarChanged()); adapter.menuBarChanged(null, null); assertFalse(invoked[0]); adapter.setMenuBarChanged(callable); adapter.menuBarChanged(null, null); assertTrue(invoked[0]); }