### Question:
AbstractProfileManager implements ProfileManager { @Override public Collection<Profile> getProfiles(final String definitionSetId) { final Annotation qualifier = getQualifier().apply(definitionSetId); final List<Profile> result = new ArrayList<>(); selectProfileInstances(qualifier).forEach(result::add); result.add(getDefaultProfileInstance()); return result; }  @Override Collection<Profile> getAllProfiles(); @Override Profile getProfile(final String id); @Override Collection<Profile> getProfiles(final String definitionSetId); @Override Profile getProfile(final String definitionSetId,
                              final String id);  }### Answer:
@Test public void testGetProfilesByDomain() { Collection<Profile> domainProfiles = tested.getProfiles(DEF_SET_ID); assertEquals(2, domainProfiles.size()); assertTrue(domainProfiles.contains(defaultProfile)); assertTrue(domainProfiles.contains(domainProfile)); }