### Question:
ActionAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ActionListener { public void enabledChanged(org.apache.pivot.wtk.Action arg0) { if (enabledChanged != null) { enabledChanged.call(arg0); } }  CallableWithArgs<Void> getEnabledChanged(); void setEnabledChanged(CallableWithArgs<Void> enabledChanged); void enabledChanged(org.apache.pivot.wtk.Action arg0);  }### Answer:
@Test public void testEnabledChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getEnabledChanged()); adapter.enabledChanged(null); assertFalse(invoked[0]); adapter.setEnabledChanged(callable); adapter.enabledChanged(null); assertTrue(invoked[0]); }