### Question:
Decorator extends Group { protected AnimationCallback createHideAnimationCallback() { return new AnimationCallback() { @Override public void onClose(IAnimation animation, IAnimationHandle handle) { super.onClose(animation, handle); fireHide(); } }; } 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 testCreateHideAnimationCallback() { decorator.createHideAnimationCallback().onClose(animation, animationHandle); verify(decorator).fireHide(); }