### Question:
DMNShapeFactory implements ShapeFactory<DMNDefinition, Shape> { @Override public Shape newShape(final DMNDefinition definition) { return delegateShapeFactory.newShape(definition); } @Inject  DMNShapeFactory(final SVGShapeFactory svgShapeFactory,
                           final DMNConnectorShapeFactory dmnConnectorShapeFactory,
                           final DMNDecisionServiceShapeFactory dmnDecisionServiceShapeFactory,
                           final DelegateShapeFactory<DMNDefinition, Shape> delegateShapeFactory); @PostConstruct void init(); @Override Shape newShape(final DMNDefinition definition); @Override Glyph getGlyph(final String definitionId); @Override Glyph getGlyph(final String definitionId,
                          final Class<? extends GlyphConsumer> consumer);  }### Answer:
@Test public void testNewShape() { factory.newShape(definition); verify(delegateShapeFactory).newShape(definition); }