### Question:
ImageAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.media.ImageListener { public void regionUpdated(org.apache.pivot.wtk.media.Image arg0, int arg1, int arg2, int arg3, int arg4) { if (regionUpdated != null) { regionUpdated.call(arg0, arg1, arg2, arg3, arg4); } }  CallableWithArgs<Void> getRegionUpdated(); CallableWithArgs<Void> getBaselineChanged(); CallableWithArgs<Void> getSizeChanged(); void setRegionUpdated(CallableWithArgs<Void> regionUpdated); void setBaselineChanged(CallableWithArgs<Void> baselineChanged); void setSizeChanged(CallableWithArgs<Void> sizeChanged); void regionUpdated(org.apache.pivot.wtk.media.Image arg0, int arg1, int arg2, int arg3, int arg4); void baselineChanged(org.apache.pivot.wtk.media.Image arg0, int arg1); void sizeChanged(org.apache.pivot.wtk.media.Image arg0, int arg1, int arg2);  }### Answer:
@Test public void testRegionUpdated() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getRegionUpdated()); adapter.regionUpdated(null, 0, 0, 0, 0); assertFalse(invoked[0]); adapter.setRegionUpdated(callable); adapter.regionUpdated(null, 0, 0, 0, 0); assertTrue(invoked[0]); }