### Question:
Decorator extends Group { protected AnimationCallback createShowAnimationCallback(final double x, final double y) { return new AnimationCallback() { @Override public void onClose(final IAnimation animation, final IAnimationHandle handle) { super.onClose(animation, handle); fireShow(x, y); } }; } Decorator(final ItemCallback callback); Decorator setPadding(final double padding); Decorator setItemCallback(final ItemCallback callback); IPrimitive<?> build(final IPrimitive<?> item,
                               final double width,
                               final double height); Rectangle createRectangle(final double width,
                                     final double height); Decorator show(final double x,
                          final double y); Decorator hide();  }### Answer:
@Test public void testCreateShowAnimationCallback() { decorator.createShowAnimationCallback(0.9, 1.1).onClose(animation, animationHandle); verify(decorator).fireShow(0.9, 1.1); }