ProfileDirectoryImpl implements ProfileDirectory { @Override public Set<String> getValidationProfileIds() { return Collections.unmodifiableSet(this.flavourDir.getKeys()); } 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 testGetValidationProfileIds() { ProfileDirectory dir = Profiles .directoryFromProfiles(DEFAULT_ALONE); assertTrue(dir.getValidationProfileIds().size() == 1); dir = Profiles.directoryFromProfiles(PDFA_1B_ALONE); assertTrue(dir.getValidationProfileIds().size() == 1); dir = Profiles.directoryFromProfiles(DUAL_PROFILE); assertTrue(dir.getValidationProfileIds().size() == 2); assertTrue(dir.getValidationProfileIds().contains( DEFAULT.getPDFAFlavour().getId())); assertTrue(dir.getValidationProfileIds().contains( PDFA_1B.getPDFAFlavour().getId())); }