### Question:
ComponentDecoratorAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ComponentDecoratorListener { public void decoratorUpdated(org.apache.pivot.wtk.Component arg0, int arg1, org.apache.pivot.wtk.effects.Decorator arg2) { if (decoratorUpdated != null) { decoratorUpdated.call(arg0, arg1, arg2); } }  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 testDecoratorUpdated() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getDecoratorUpdated()); adapter.decoratorUpdated(null, 0, null); assertFalse(invoked[0]); adapter.setDecoratorUpdated(callable); adapter.decoratorUpdated(null, 0, null); assertTrue(invoked[0]); }