### Question:
ConnectorShape extends AbstractElementShape<W, ViewConnector<W>, Edge<ViewConnector<W>, Node>, D, V> implements EdgeShape<W, ViewConnector<W>, Edge<ViewConnector<W>, Node>, V>,
                   Lifecycle { @Override public void applyState(final ShapeState shapeState) { getShape().applyState(shapeState); } ConnectorShape(final D shapeDef,
                          final V view,
                          final ShapeStateHandler shapeStateHelper); @Override void applyConnections(final Edge<ViewConnector<W>, Node> element,
                                 final ShapeView<?> source,
                                 final ShapeView<?> target,
                                 final MutationContext mutationContext); @Override void applyPosition(final Edge<ViewConnector<W>, Node> element,
                              final MutationContext mutationContext); @Override void applyState(final ShapeState shapeState);  }### Answer:
@Test @SuppressWarnings("unchecked") public void testApplyState() { tested.applyState(ShapeState.NONE); verify(shapeStateHandler, never()).shapeAttributesChanged(); verify(shapeStateHandler, times(1)).applyState(eq(ShapeState.NONE)); }