### Question:
StunnerPreferencesRegistryLoader { @PreDestroy public void destroy() { preferencesHolders.destroyAll(); } @Inject  StunnerPreferencesRegistryLoader(final DefinitionUtils definitionUtils,
                                            final @Any ManagedInstance<StunnerPreferencesRegistryHolder> preferencesHolders,
                                            final StunnerPreferences preferences,
                                            final StunnerTextPreferences textPreferences); void load(final Metadata metadata,
                     final ParameterizedCommand<StunnerPreferences> loadCompleteCallback,
                     final ParameterizedCommand<Throwable> errorCallback); @PreDestroy void destroy();  }### Answer:
@Test public void testDestroy() { tested.destroy(); verify(preferencesHolders, times(1)).destroyAll(); }