### Question:
ButtonBindingAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ButtonBindingListener { public void selectedBindTypeChanged(org.apache.pivot.wtk.Button arg0, org.apache.pivot.wtk.BindType arg1) { if (selectedBindTypeChanged != null) { selectedBindTypeChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getButtonDataKeyChanged(); CallableWithArgs<Void> getButtonDataBindTypeChanged(); CallableWithArgs<Void> getButtonDataBindMappingChanged(); CallableWithArgs<Void> getSelectedKeyChanged(); CallableWithArgs<Void> getSelectedBindTypeChanged(); CallableWithArgs<Void> getSelectedBindMappingChanged(); CallableWithArgs<Void> getStateKeyChanged(); CallableWithArgs<Void> getStateBindTypeChanged(); CallableWithArgs<Void> getStateBindMappingChanged(); void setButtonDataKeyChanged(CallableWithArgs<Void> buttonDataKeyChanged); void setButtonDataBindTypeChanged(CallableWithArgs<Void> buttonDataBindTypeChanged); void setButtonDataBindMappingChanged(CallableWithArgs<Void> buttonDataBindMappingChanged); void setSelectedKeyChanged(CallableWithArgs<Void> selectedKeyChanged); void setSelectedBindTypeChanged(CallableWithArgs<Void> selectedBindTypeChanged); void setSelectedBindMappingChanged(CallableWithArgs<Void> selectedBindMappingChanged); void setStateKeyChanged(CallableWithArgs<Void> stateKeyChanged); void setStateBindTypeChanged(CallableWithArgs<Void> stateBindTypeChanged); void setStateBindMappingChanged(CallableWithArgs<Void> stateBindMappingChanged); void buttonDataKeyChanged(org.apache.pivot.wtk.Button arg0, java.lang.String arg1); void buttonDataBindTypeChanged(org.apache.pivot.wtk.Button arg0, org.apache.pivot.wtk.BindType arg1); void buttonDataBindMappingChanged(org.apache.pivot.wtk.Button arg0, org.apache.pivot.wtk.Button.ButtonDataBindMapping arg1); void selectedKeyChanged(org.apache.pivot.wtk.Button arg0, java.lang.String arg1); void selectedBindTypeChanged(org.apache.pivot.wtk.Button arg0, org.apache.pivot.wtk.BindType arg1); void selectedBindMappingChanged(org.apache.pivot.wtk.Button arg0, org.apache.pivot.wtk.Button.SelectedBindMapping arg1); void stateKeyChanged(org.apache.pivot.wtk.Button arg0, java.lang.String arg1); void stateBindTypeChanged(org.apache.pivot.wtk.Button arg0, org.apache.pivot.wtk.BindType arg1); void stateBindMappingChanged(org.apache.pivot.wtk.Button arg0, org.apache.pivot.wtk.Button.StateBindMapping arg1);  }### Answer:
@Test public void testSelectedBindTypeChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getSelectedBindTypeChanged()); adapter.selectedBindTypeChanged(null, null); assertFalse(invoked[0]); adapter.setSelectedBindTypeChanged(callable); adapter.selectedBindTypeChanged(null, null); assertTrue(invoked[0]); }