### Question:
DMNShapeFactory implements ShapeFactory<DMNDefinition, Shape> { @Override public Glyph getGlyph(final String definitionId) { return delegateShapeFactory.getGlyph(definitionId); } @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 testGetGlyph() { factory.getGlyph(DEFINITION_ID); verify(delegateShapeFactory).getGlyph(DEFINITION_ID); }
@Test public void testGetGlyphWithConsumer() { factory.getGlyph(DEFINITION_ID, ShapeFactory.GlyphConsumer.class); verify(delegateShapeFactory).getGlyph(DEFINITION_ID, ShapeFactory.GlyphConsumer.class); }