### Question:
SVGChildViewHandler { @SuppressWarnings("unchecked") public void addChild(final SVGPrimitive<?> child) { final IPrimitive<?> primitive = child.get(); primChildren.add(child); if (child.isScalable() && view instanceof DecoratedShapeView) { ((DecoratedShapeView) view).addScalableChild(primitive); } else if (null != child.getLayout()) { view.addChild(primitive, child.getLayout()); } else { view.addChild(primitive); } } SVGChildViewHandler(final WiresShapeView<?> view); @SuppressWarnings("unchecked") void addChild(final SVGPrimitive<?> child); @SuppressWarnings("unchecked") void addSVGChild(final SVGContainer parent,
                            final SVGBasicShapeView child); void clear(); Collection<SVGPrimitive<?>> getChildren(); Collection<SVGBasicShapeView> getSVGChildren();  }### Answer:
@Test public void testAddChild() { primitiveShape = new SVGPrimitiveShape(rectangle); tested.addChild(primitiveShape); verify(shapeView, times(1)).addChild(eq(rectangle)); assertEquals(1, tested.getChildren().size()); assertEquals(primitiveShape, tested.getChildren().iterator().next()); }