### Question:
DefaultToolboxControl extends AbstractToolboxControl { @Override protected List<ActionsToolboxFactory> getFactories() { return Arrays.asList(flowActionsToolboxFactories.get(), morphActionsToolboxFactories.get(), commonActionsToolboxFactories.get()); } @Inject  DefaultToolboxControl(final @Any @FlowActionsToolbox ManagedInstance<ActionsToolboxFactory> flowActionsToolboxFactories,
                                 final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxFactory> morphActionsToolboxFactories,
                                 final @Any @CommonActionsToolbox ManagedInstance<ActionsToolboxFactory> commonActionsToolboxFactories);   DefaultToolboxControl(final @Any @FlowActionsToolbox ManagedInstance<ActionsToolboxFactory> flowActionsToolboxFactories,
                          final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxFactory> morphActionsToolboxFactories,
                          final @Any @CommonActionsToolbox ManagedInstance<ActionsToolboxFactory> commonActionsToolboxFactories,
                          final ToolboxControlImpl<ActionsToolboxFactory> toolboxControl); @PreDestroy @Override void destroy();  }### Answer:
@Test public void testGetTheRightFactories() { final List<ActionsToolboxFactory> factories = this.tested.getFactories(); assertEquals(3, factories.size()); assertTrue(factories.contains(flowActionsToolboxFactoryInstance)); assertTrue(factories.contains(morphActionsToolboxFactoryInstance)); assertTrue(factories.contains(commonActionsToolboxFactoryInstance)); }