### Question:
SpinnerSelectionAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.SpinnerSelectionListener { public void selectedItemChanged(org.apache.pivot.wtk.Spinner arg0, java.lang.Object arg1) { if (selectedItemChanged != null) { selectedItemChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getSelectedIndexChanged(); CallableWithArgs<Void> getSelectedItemChanged(); void setSelectedIndexChanged(CallableWithArgs<Void> selectedIndexChanged); void setSelectedItemChanged(CallableWithArgs<Void> selectedItemChanged); void selectedIndexChanged(org.apache.pivot.wtk.Spinner arg0, int arg1); void selectedItemChanged(org.apache.pivot.wtk.Spinner arg0, java.lang.Object arg1);  }### Answer:
@Test public void testSelectedItemChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getSelectedItemChanged()); adapter.selectedItemChanged(null, null); assertFalse(invoked[0]); adapter.setSelectedItemChanged(callable); adapter.selectedItemChanged(null, null); assertTrue(invoked[0]); }