### Question:
CaseManagementShapeCommand { public static CaseManagementShape create(Object definition, CaseManagementShapeView shapeView, CaseManagementSvgShapeDef shapeDef) { Command command = CM_SHAPE_TYPES.get(definition.getClass()); if (command == null) { return null; } applyShapeViewHandlers(definition, shapeView, shapeDef); return command.configure(shapeView, shapeDef); }  static CaseManagementShape create(Object definition, CaseManagementShapeView shapeView, CaseManagementSvgShapeDef shapeDef);  }### Answer:
@Test public void create() { CaseManagementShape shape = CaseManagementShapeCommand.create(def, shapeView, shapeDef); verify(shapeDef).fontHandler(); verify(shapeView).setTitlePosition(HasTitle.VerticalAlignment.MIDDLE, HasTitle.HorizontalAlignment.CENTER, HasTitle.ReferencePosition.INSIDE, HasTitle.Orientation.HORIZONTAL); verify(shapeView).setTextSizeConstraints(new HasTitle.Size(100, 100, HasTitle.Size.SizeType.PERCENTAGE)); }
@Test public void create_noShape() { CaseManagementShapeCommand.create(new Object(), shapeView, shapeDef); verify(shapeDef, never()).fontHandler(); verify(shapeView, never()).setTitlePosition(any(HasTitle.VerticalAlignment.class), any(HasTitle.HorizontalAlignment.class), any(HasTitle.ReferencePosition.class), any(HasTitle.Orientation.class)); verify(shapeView, never()).setTextSizeConstraints(any(HasTitle.Size.class)); }