### Question:
ActivityIndicatorAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ActivityIndicatorListener { public void activeChanged(org.apache.pivot.wtk.ActivityIndicator arg0) { if (activeChanged != null) { activeChanged.call(arg0); } }  CallableWithArgs<Void> getActiveChanged(); void setActiveChanged(CallableWithArgs<Void> activeChanged); void activeChanged(org.apache.pivot.wtk.ActivityIndicator arg0);  }### Answer:
@Test public void testActiveChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getActiveChanged()); adapter.activeChanged(null); assertFalse(invoked[0]); adapter.setActiveChanged(callable); adapter.activeChanged(null); assertTrue(invoked[0]); }