### Question:
BoxPaneAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.BoxPaneListener { public void orientationChanged(org.apache.pivot.wtk.BoxPane arg0) { if (orientationChanged != null) { orientationChanged.call(arg0); } }  CallableWithArgs<Void> getOrientationChanged(); void setOrientationChanged(CallableWithArgs<Void> orientationChanged); void orientationChanged(org.apache.pivot.wtk.BoxPane arg0);  }### Answer:
@Test public void testOrientationChanged() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getOrientationChanged()); adapter.orientationChanged(null); assertFalse(invoked[0]); adapter.setOrientationChanged(callable); adapter.orientationChanged(null); assertTrue(invoked[0]); }