### Question:
StunnerMagnetDecorator extends MagnetDecorator { @Override public Shape decorate(Shape shape, ShapeState state) { switch (state) { case VALID: case INVALID: case NONE: shape.setFillColor(StunnerPointHandleDecorator.MAIN_COLOR) .setFillAlpha(0.7) .setStrokeAlpha(1) .setStrokeWidth(0) .moveToTop(); } return shape; }  @Override Shape decorate(Shape shape, ShapeState state);  }### Answer:
@Test public void decorate() { tested.decorate(shape, IShapeDecorator.ShapeState.VALID); tested.decorate(shape, IShapeDecorator.ShapeState.INVALID); tested.decorate(shape, IShapeDecorator.ShapeState.NONE); verify(shape, times(3)).setFillColor("#0088CE"); verify(shape, times(3)).setFillAlpha(0.7); verify(shape, times(3)).setStrokeAlpha(1); verify(shape, times(3)).setStrokeWidth(0); verify(shape, times(3)).moveToTop(); }