### Question:
MenuAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuListener { public void activeItemChanged(org.apache.pivot.wtk.Menu arg0, org.apache.pivot.wtk.Menu.Item arg1) { if (activeItemChanged != null) { activeItemChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getSectionInserted(); CallableWithArgs<Void> getSectionsRemoved(); CallableWithArgs<Void> getActiveItemChanged(); void setSectionInserted(CallableWithArgs<Void> sectionInserted); void setSectionsRemoved(CallableWithArgs<Void> sectionsRemoved); void setActiveItemChanged(CallableWithArgs<Void> activeItemChanged); void sectionInserted(org.apache.pivot.wtk.Menu arg0, int arg1); void sectionsRemoved(org.apache.pivot.wtk.Menu arg0, int arg1, org.apache.pivot.collections.Sequence<Menu.Section> arg2); void activeItemChanged(org.apache.pivot.wtk.Menu arg0, org.apache.pivot.wtk.Menu.Item arg1);  }### Answer:
@Test public void testActiveItemChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getActiveItemChanged()); adapter.activeItemChanged(null, null); assertFalse(invoked[0]); adapter.setActiveItemChanged(callable); adapter.activeItemChanged(null, null); assertTrue(invoked[0]); }