### Question:
CaseManagementCanvasView extends WiresCanvasView { public WiresCanvasView addChildShape(final ShapeView<?> parent, final ShapeView<?> child, final int index) { CaseManagementShapeView parentCMView = (CaseManagementShapeView) parent; CaseManagementShapeView childCMView = (CaseManagementShapeView) child; parentCMView.addShape(childCMView, index); 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 addChildShape() { final CaseManagementShapeView parent = new CaseManagementShapeView("mockCaseMgmtShapeViewParent", new SVGPrimitiveShape(new Rectangle(0d, 0d)), 0d, 0d, false); final CaseManagementShapeView child = new CaseManagementShapeView("mockCaseMgmtShapeViewChild", new SVGPrimitiveShape(new Rectangle(0d, 0d)), 0d, 0d, false); view.addChildShape(parent, child, 0); assertEquals(1, parent.getChildShapes().size()); assertEquals(child, parent.getChildShapes().get(0)); }