### Question:
MenuBarAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuBarListener { public void itemsRemoved(org.apache.pivot.wtk.MenuBar arg0, int arg1, org.apache.pivot.collections.Sequence<MenuBar.Item> arg2) { if (itemsRemoved != null) { itemsRemoved.call(arg0, arg1, arg2); } }  CallableWithArgs<Void> getActiveItemChanged(); CallableWithArgs<Void> getItemInserted(); CallableWithArgs<Void> getItemsRemoved(); void setActiveItemChanged(CallableWithArgs<Void> activeItemChanged); void setItemInserted(CallableWithArgs<Void> itemInserted); void setItemsRemoved(CallableWithArgs<Void> itemsRemoved); void activeItemChanged(org.apache.pivot.wtk.MenuBar arg0, org.apache.pivot.wtk.MenuBar.Item arg1); void itemInserted(org.apache.pivot.wtk.MenuBar arg0, int arg1); void itemsRemoved(org.apache.pivot.wtk.MenuBar arg0, int arg1, org.apache.pivot.collections.Sequence<MenuBar.Item> arg2);  }### Answer:
@Test public void testItemsRemoved() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getItemsRemoved()); adapter.itemsRemoved(null, 0, null); assertFalse(invoked[0]); adapter.setItemsRemoved(callable); adapter.itemsRemoved(null, 0, null); assertTrue(invoked[0]); }