### Question:
ColorChooserButtonSelectionAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ColorChooserButtonSelectionListener { public void selectedColorChanged(org.apache.pivot.wtk.ColorChooserButton arg0, java.awt.Color arg1) { if (selectedColorChanged != null) { selectedColorChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getSelectedColorChanged(); void setSelectedColorChanged(CallableWithArgs<Void> selectedColorChanged); void selectedColorChanged(org.apache.pivot.wtk.ColorChooserButton arg0, java.awt.Color arg1);  }### Answer:
@Test public void testSelectedColorChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getSelectedColorChanged()); adapter.selectedColorChanged(null, null); assertFalse(invoked[0]); adapter.setSelectedColorChanged(callable); adapter.selectedColorChanged(null, null); assertTrue(invoked[0]); }