### Question:
BackendProfileManager extends AbstractProfileManager { @PreDestroy public void destroy() { profileInstances.forEach(profileInstances::destroy); } @Inject  BackendProfileManager(final DefinitionUtils definitionUtils,
                                 final @Any Instance<Profile> profileInstances); @PreDestroy void destroy();  }### Answer:
@Test public void testDestroy() { tested.destroy(); verify(profileInstances, times(1)).destroy(eq(profile1)); verify(profileInstances, times(1)).destroy(eq(profile2)); }