### Question:
CaseManagementSvgDiagramShapeDef extends BaseDimensionedShapeDef implements CaseManagementSvgShapeDef<CaseManagementDiagram> { @Override public SVGShapeView<?> newViewInstance(final CaseManagementSVGViewFactory factory, final CaseManagementDiagram diagram) { return newViewInstance(Optional.of(new Width(0d)), Optional.of(new Height(0d)), factory.rectangle()); }  @Override SizeHandler<CaseManagementDiagram, SVGShapeView> newSizeHandler(); @Override SVGShapeView<?> newViewInstance(final CaseManagementSVGViewFactory factory,
                                           final CaseManagementDiagram diagram);  }### Answer:
@Test public void testNewViewInstance() throws Exception { tested.newViewInstance(factory, new CaseManagementDiagram()); verify(factory, times(1)).rectangle(); }