### Question:
ClientProfileManager extends AbstractProfileManager { @PreDestroy public void destroy() { profileInstances.destroyAll(); } @Inject  ClientProfileManager(final DefinitionUtils definitionUtils,
                                final @Any ManagedInstance<Profile> profileInstances); @PreDestroy void destroy();  }### Answer:
@Test public void testDestroy() { tested.destroy(); verify(profileInstances, times(1)).destroyAll(); }