### Question:
SpinnerBindingAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.SpinnerBindingListener { public void spinnerDataBindTypeChanged(org.apache.pivot.wtk.Spinner arg0, org.apache.pivot.wtk.BindType arg1) { if (spinnerDataBindTypeChanged != null) { spinnerDataBindTypeChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getSelectedItemKeyChanged(); CallableWithArgs<Void> getSelectedItemBindTypeChanged(); CallableWithArgs<Void> getSelectedItemBindMappingChanged(); CallableWithArgs<Void> getSpinnerDataKeyChanged(); CallableWithArgs<Void> getSpinnerDataBindTypeChanged(); CallableWithArgs<Void> getSpinnerDataBindMappingChanged(); void setSelectedItemKeyChanged(CallableWithArgs<Void> selectedItemKeyChanged); void setSelectedItemBindTypeChanged(CallableWithArgs<Void> selectedItemBindTypeChanged); void setSelectedItemBindMappingChanged(CallableWithArgs<Void> selectedItemBindMappingChanged); void setSpinnerDataKeyChanged(CallableWithArgs<Void> spinnerDataKeyChanged); void setSpinnerDataBindTypeChanged(CallableWithArgs<Void> spinnerDataBindTypeChanged); void setSpinnerDataBindMappingChanged(CallableWithArgs<Void> spinnerDataBindMappingChanged); void selectedItemKeyChanged(org.apache.pivot.wtk.Spinner arg0, java.lang.String arg1); void selectedItemBindTypeChanged(org.apache.pivot.wtk.Spinner arg0, org.apache.pivot.wtk.BindType arg1); void selectedItemBindMappingChanged(org.apache.pivot.wtk.Spinner arg0, org.apache.pivot.wtk.Spinner.ItemBindMapping arg1); void spinnerDataKeyChanged(org.apache.pivot.wtk.Spinner arg0, java.lang.String arg1); void spinnerDataBindTypeChanged(org.apache.pivot.wtk.Spinner arg0, org.apache.pivot.wtk.BindType arg1); void spinnerDataBindMappingChanged(org.apache.pivot.wtk.Spinner arg0, org.apache.pivot.wtk.Spinner.SpinnerDataBindMapping arg1);  }### Answer:
@Test public void testSpinnerDataBindTypeChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getSpinnerDataBindTypeChanged()); adapter.spinnerDataBindTypeChanged(null, null); assertFalse(invoked[0]); adapter.setSpinnerDataBindTypeChanged(callable); adapter.spinnerDataBindTypeChanged(null, null); assertTrue(invoked[0]); }