### Question:
SuggestionPopupItemAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.SuggestionPopupItemListener { public void itemsSorted(org.apache.pivot.wtk.SuggestionPopup arg0) { if (itemsSorted != null) { itemsSorted.call(arg0); } }  CallableWithArgs<Void> getItemsCleared(); CallableWithArgs<Void> getItemsSorted(); CallableWithArgs<Void> getItemInserted(); CallableWithArgs<Void> getItemUpdated(); CallableWithArgs<Void> getItemsRemoved(); void setItemsCleared(CallableWithArgs<Void> itemsCleared); void setItemsSorted(CallableWithArgs<Void> itemsSorted); void setItemInserted(CallableWithArgs<Void> itemInserted); void setItemUpdated(CallableWithArgs<Void> itemUpdated); void setItemsRemoved(CallableWithArgs<Void> itemsRemoved); void itemsCleared(org.apache.pivot.wtk.SuggestionPopup arg0); void itemsSorted(org.apache.pivot.wtk.SuggestionPopup arg0); void itemInserted(org.apache.pivot.wtk.SuggestionPopup arg0, int arg1); void itemUpdated(org.apache.pivot.wtk.SuggestionPopup arg0, int arg1); void itemsRemoved(org.apache.pivot.wtk.SuggestionPopup arg0, int arg1, int arg2);  }### Answer:
@Test public void testItemsSorted() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getItemsSorted()); adapter.itemsSorted(null); assertFalse(invoked[0]); adapter.setItemsSorted(callable); adapter.itemsSorted(null); assertTrue(invoked[0]); }