### Question:
WindowActionMappingAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.WindowActionMappingListener { public void actionMappingAdded(org.apache.pivot.wtk.Window arg0) { if (actionMappingAdded != null) { actionMappingAdded.call(arg0); } }  CallableWithArgs<Void> getActionMappingAdded(); CallableWithArgs<Void> getActionMappingsRemoved(); CallableWithArgs<Void> getKeyStrokeChanged(); CallableWithArgs<Void> getActionChanged(); void setActionMappingAdded(CallableWithArgs<Void> actionMappingAdded); void setActionMappingsRemoved(CallableWithArgs<Void> actionMappingsRemoved); void setKeyStrokeChanged(CallableWithArgs<Void> keyStrokeChanged); void setActionChanged(CallableWithArgs<Void> actionChanged); void actionMappingAdded(org.apache.pivot.wtk.Window arg0); void actionMappingsRemoved(org.apache.pivot.wtk.Window arg0, int arg1, org.apache.pivot.collections.Sequence<Window.ActionMapping> arg2); void keyStrokeChanged(org.apache.pivot.wtk.Window.ActionMapping arg0, org.apache.pivot.wtk.Keyboard.KeyStroke arg1); void actionChanged(org.apache.pivot.wtk.Window.ActionMapping arg0, org.apache.pivot.wtk.Action arg1);  }### Answer:
@Test public void testActionMappingAdded() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getActionMappingAdded()); adapter.actionMappingAdded(null); assertFalse(invoked[0]); adapter.setActionMappingAdded(callable); adapter.actionMappingAdded(null); assertTrue(invoked[0]); }