### Question:
MorphActionsToolboxFactory extends AbstractActionsToolboxFactory { @PreDestroy public void destroy() { morphNodeActionsDestroyer.execute(); viewsDestroyer.execute(); } @Inject  MorphActionsToolboxFactory(final DefinitionUtils definitionUtils,
                                      final DomainProfileManager profileManager,
                                      final @Any ManagedInstance<MorphNodeToolboxAction> morphNodeActions,
                                      final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxView> views);   MorphActionsToolboxFactory(final DefinitionUtils definitionUtils,
                               final DomainProfileManager profileManager,
                               final Supplier<MorphNodeToolboxAction> morphNodeActions,
                               final Command morphNodeActionsDestroyer,
                               final Supplier<ActionsToolboxView> views,
                               final Command viewsDestroyer); @Override @SuppressWarnings("unchecked") Collection<ToolboxAction<AbstractCanvasHandler>> getActions(final AbstractCanvasHandler canvasHandler,
                                                                       final Element<?> e); @PreDestroy void destroy();  }### Answer:
@Test public void testDestroy() { tested.destroy(); verify(morphNodeActionDestroyer, times(1)).execute(); verify(viewDestroyer, times(1)).execute(); }