### Question:
CaseManagementCanvasView extends WiresCanvasView { @Override public WiresCanvasView add(final ShapeView<?> shapeView) { if (WiresUtils.isWiresShape(shapeView)) { WiresShape wiresShape = (WiresShape) shapeView; getLayer().getWiresManager().register(wiresShape, false); WiresUtils.assertShapeGroup(wiresShape.getGroup(), WiresCanvas.WIRES_CANVAS_GROUP_ID); } else if (WiresUtils.isWiresConnector(shapeView)) { } else { super.add(shapeView); } return this; } @Inject  CaseManagementCanvasView(final WiresLayer layer); @Override WiresCanvasView add(final ShapeView<?> shapeView); WiresCanvasView addChildShape(final ShapeView<?> parent, final ShapeView<?> child, final int index);  }### Answer:
@Test public void addWiresShape() { final CaseManagementShapeView shape = new CaseManagementShapeView("mockCaseMgmtShapeView", new SVGPrimitiveShape(new Rectangle(0d, 0d)), 0d, 0d, false); final String uuid = shape.uuid(); shape.setUUID(uuid); view.add(shape); final WiresShape registeredShape = wiresManager.getShape(uuid); assertNotNull(registeredShape); assertEquals(shape, registeredShape); }
@Test public void addWiresConnector() { final AbstractConnectorView connector = new PolylineConnectorView(0.0, 0.0); final String uuid = connector.uuid(); connector.setUUID(uuid); view.add(connector); final WiresShape registeredConnector = wiresManager.getShape(uuid); assertNull(registeredConnector); }