### Question:
BackendProfileManager extends AbstractProfileManager { @Override protected Iterable<Profile> getAllProfileInstances() { return profileInstances; } @Inject  BackendProfileManager(final DefinitionUtils definitionUtils,
                                 final @Any Instance<Profile> profileInstances); @PreDestroy void destroy();  }### Answer:
@Test public void testGetAllProfileInstances() { Iterable<Profile> profiles = tested.getAllProfileInstances(); Iterator<Profile> iterator = profiles.iterator(); assertEquals(profile1, iterator.next()); assertEquals(profile2, iterator.next()); assertFalse(iterator.hasNext()); }