### Question:
ComponentStateAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ComponentStateListener { public void focusedChanged(org.apache.pivot.wtk.Component arg0, org.apache.pivot.wtk.Component arg1) { if (focusedChanged != null) { focusedChanged.call(arg0, arg1); } }  CallableWithArgs<Void> getEnabledChanged(); CallableWithArgs<Void> getFocusedChanged(); void setEnabledChanged(CallableWithArgs<Void> enabledChanged); void setFocusedChanged(CallableWithArgs<Void> focusedChanged); void enabledChanged(org.apache.pivot.wtk.Component arg0); void focusedChanged(org.apache.pivot.wtk.Component arg0, org.apache.pivot.wtk.Component arg1);  }### Answer:
@Test public void testFocusedChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getFocusedChanged()); adapter.focusedChanged(null, null); assertFalse(invoked[0]); adapter.setFocusedChanged(callable); adapter.focusedChanged(null, null); assertTrue(invoked[0]); }