### Question:
ShapeStateDefaultHandler implements ShapeStateHandler { @Override public ShapeState reset() { getShadowShape().ifPresent(this::removeShadow); return handler.reset(); } ShapeStateDefaultHandler();   ShapeStateDefaultHandler(final ShapeStateAttributeAnimationHandler<LienzoShapeView<?>> handler); ShapeStateDefaultHandler setRenderType(final RenderType renderType); ShapeStateDefaultHandler setBorderShape(final Supplier<LienzoShapeView<?>> shapeSupplier); ShapeStateDefaultHandler setBackgroundShape(final Supplier<LienzoShapeView<?>> shapeSupplier); ShapeStateDefaultHandler setContainerShape(final Supplier<LienzoShapeView<?>> shapeSupplier); @Override void applyState(final ShapeState shapeState); @Override ShapeStateHandler shapeAttributesChanged(); @Override ShapeState reset(); @Override ShapeState getShapeState();  }### Answer:
@Test @SuppressWarnings("unchecked") public void testReset() { tested.setBackgroundShape(() -> backgroundShape); tested.reset(); verify(backgroundShape, times(1)).removeShadow(); verify(backgroundShape, never()).setShadow(anyString(), anyInt(), anyDouble(), anyDouble()); }