### Question:
ActionClassAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ActionClassListener { public void actionAdded(java.lang.String arg0) { if (actionAdded != null) { actionAdded.call(arg0); } }  CallableWithArgs<Void> getActionAdded(); CallableWithArgs<Void> getActionUpdated(); CallableWithArgs<Void> getActionRemoved(); void setActionAdded(CallableWithArgs<Void> actionAdded); void setActionUpdated(CallableWithArgs<Void> actionUpdated); void setActionRemoved(CallableWithArgs<Void> actionRemoved); void actionAdded(java.lang.String arg0); void actionUpdated(java.lang.String arg0, org.apache.pivot.wtk.Action arg1); void actionRemoved(java.lang.String arg0, org.apache.pivot.wtk.Action arg1);  }### Answer:
@Test public void testActionAdded() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getActionAdded()); adapter.actionAdded(null); assertFalse(invoked[0]); adapter.setActionAdded(callable); adapter.actionAdded(null); assertTrue(invoked[0]); }