### Question:
MenuPopupStateAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.MenuPopupStateListener { public void menuPopupClosed(org.apache.pivot.wtk.MenuPopup arg0) { if (menuPopupClosed != null) { menuPopupClosed.call(arg0); } }  CallableWithArgs<Vote> getPreviewMenuPopupClose(); CallableWithArgs<Void> getMenuPopupClosed(); CallableWithArgs<Void> getMenuPopupCloseVetoed(); void setPreviewMenuPopupClose(CallableWithArgs<Vote> previewMenuPopupClose); void setMenuPopupClosed(CallableWithArgs<Void> menuPopupClosed); void setMenuPopupCloseVetoed(CallableWithArgs<Void> menuPopupCloseVetoed); org.apache.pivot.util.Vote previewMenuPopupClose(org.apache.pivot.wtk.MenuPopup arg0, boolean arg1); void menuPopupClosed(org.apache.pivot.wtk.MenuPopup arg0); void menuPopupCloseVetoed(org.apache.pivot.wtk.MenuPopup arg0, org.apache.pivot.util.Vote arg1);  }### Answer:
@Test public void testMenuPopupClosed() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getMenuPopupClosed()); adapter.menuPopupClosed(null); assertFalse(invoked[0]); adapter.setMenuPopupClosed(callable); adapter.menuPopupClosed(null); assertTrue(invoked[0]); }