ProfileDirectoryImpl implements ProfileDirectory { @Override public Set<ValidationProfile> getValidationProfiles() { return Collections.unmodifiableSet(new HashSet<>(this.profileDir .getItems())); } private  ProfileDirectoryImpl(Set<ValidationProfile> profileSet); private  ProfileDirectoryImpl(Map<PDFAFlavour, ValidationProfile> profileMap); @Override Set<String> getValidationProfileIds(); @Override Set<PDFAFlavour> getPDFAFlavours(); @Override ValidationProfile getValidationProfileById(String profileID); @Override ValidationProfile getValidationProfileByFlavour(PDFAFlavour flavour); @Override Set<ValidationProfile> getValidationProfiles();  }
@Test public final void testGetValidationProfiles() { ProfileDirectory dir = Profiles.directoryFromProfiles(DEFAULT_ALONE); assertTrue(dir.getValidationProfiles().contains(DEFAULT)); dir = Profiles.directoryFromProfiles(PDFA_1B_ALONE); assertTrue(dir.getValidationProfiles().contains(PDFA_1B)); dir = Profiles.directoryFromProfiles(DUAL_PROFILE); assertTrue(dir.getValidationProfiles().contains(DEFAULT)); assertTrue(dir.getValidationProfiles().contains(PDFA_1B)); }