### Question:
BPMNShapeFactory implements ShapeFactory<BPMNDefinition, Shape> { @Override @SuppressWarnings("all") public Glyph getGlyph(final String definitionId) { return delegateShapeFactory.getGlyph(definitionId); } protected  BPMNShapeFactory(); @Inject  BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                            final SVGShapeFactory svgShapeFactory,
                            final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                            final ManagedInstance<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                            final DefinitionUtils definitionUtils,
                            final StunnerPreferencesRegistries preferencesRegistries);   BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                     final SVGShapeFactory svgShapeFactory,
                     final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                     final Supplier<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                     final DefinitionUtils definitionUtils,
                     final StunnerPreferencesRegistries preferencesRegistries); @PostConstruct @SuppressWarnings("all") void registerDelegates(); @Override @SuppressWarnings("all") Shape newShape(final BPMNDefinition definition); @Override @SuppressWarnings("all") Glyph getGlyph(final String definitionId);  }### Answer:
@Test public void testGetGlyph() { final String id = "id1"; tested.getGlyph(id); verify(delegateShapeFactory, times(1)).getGlyph(eq(id)); verify(delegateShapeFactory, never()).newShape(any(BPMNDefinition.class)); }