### Question:
ComponentDecoratorAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ComponentDecoratorListener { public void decoratorInserted(org.apache.pivot.wtk.Component arg0, int arg1) { if (decoratorInserted != null) { decoratorInserted.call(arg0, arg1); } }  CallableWithArgs<Void> getDecoratorInserted(); CallableWithArgs<Void> getDecoratorUpdated(); CallableWithArgs<Void> getDecoratorsRemoved(); void setDecoratorInserted(CallableWithArgs<Void> decoratorInserted); void setDecoratorUpdated(CallableWithArgs<Void> decoratorUpdated); void setDecoratorsRemoved(CallableWithArgs<Void> decoratorsRemoved); void decoratorInserted(org.apache.pivot.wtk.Component arg0, int arg1); void decoratorUpdated(org.apache.pivot.wtk.Component arg0, int arg1, org.apache.pivot.wtk.effects.Decorator arg2); void decoratorsRemoved(org.apache.pivot.wtk.Component arg0, int arg1, org.apache.pivot.collections.Sequence<Decorator> arg2);  }### Answer:
@Test public void testDecoratorInserted() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getDecoratorInserted()); adapter.decoratorInserted(null, 0); assertFalse(invoked[0]); adapter.setDecoratorInserted(callable); adapter.decoratorInserted(null, 0); assertTrue(invoked[0]); }