### Question:
CommonActionsToolboxFactory extends AbstractActionsToolboxFactory { @PreDestroy public void destroy() { deleteNodeActionsDestroyer.execute(); viewsDestroyer.execute(); } @Inject  CommonActionsToolboxFactory(final CanvasCommandManager<AbstractCanvasHandler> commandManager,
                                       final CanvasCommandFactory<AbstractCanvasHandler> commandFactory,
                                       final @Default ManagedInstance<DeleteNodeToolboxAction> deleteNodeActions,
                                       final @Any @CommonActionsToolbox ManagedInstance<ActionsToolboxView> views);   CommonActionsToolboxFactory(final CanvasCommandManager<AbstractCanvasHandler> commandManager,
                                final CanvasCommandFactory<AbstractCanvasHandler> commandFactory,
                                final Supplier<DeleteNodeToolboxAction> deleteNodeActions,
                                final Command deleteNodeActionsDestroyer,
                                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(deleteNodeActionDestroyer, times(1)).execute(); verify(viewDestroyer, times(1)).execute(); }