### Question:
ExpanderAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ExpanderListener { public void expandedChangeVetoed(org.apache.pivot.wtk.Expander arg0, org.apache.pivot.util.Vote arg1) { if (expandedChangeVetoed != null) { expandedChangeVetoed.call(arg0, arg1); } }  CallableWithArgs<Void> getTitleChanged(); CallableWithArgs<Void> getContentChanged(); CallableWithArgs<Void> getCollapsibleChanged(); CallableWithArgs<Vote> getPreviewExpandedChange(); CallableWithArgs<Void> getExpandedChangeVetoed(); CallableWithArgs<Void> getExpandedChanged(); void setTitleChanged(CallableWithArgs<Void> titleChanged); void setContentChanged(CallableWithArgs<Void> contentChanged); void setCollapsibleChanged(CallableWithArgs<Void> collapsibleChanged); void setPreviewExpandedChange(CallableWithArgs<Vote> previewExpandedChange); void setExpandedChangeVetoed(CallableWithArgs<Void> expandedChangeVetoed); void setExpandedChanged(CallableWithArgs<Void> expandedChanged); void titleChanged(org.apache.pivot.wtk.Expander arg0, java.lang.String arg1); void contentChanged(org.apache.pivot.wtk.Expander arg0, org.apache.pivot.wtk.Component arg1); void collapsibleChanged(org.apache.pivot.wtk.Expander arg0); org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander arg0); void expandedChangeVetoed(org.apache.pivot.wtk.Expander arg0, org.apache.pivot.util.Vote arg1); void expandedChanged(org.apache.pivot.wtk.Expander arg0);  }### Answer:
@Test public void testExpandedChangeVetoed() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getExpandedChangeVetoed()); adapter.expandedChangeVetoed(null, null); assertFalse(invoked[0]); adapter.setExpandedChangeVetoed(callable); adapter.expandedChangeVetoed(null, null); assertTrue(invoked[0]); }