ValidationProfileImpl implements ValidationProfile { static ValidationProfile fromValues(final PDFAFlavour flavour, final ProfileDetails details, final String hash, final Set<Rule> rules, final Set<Variable> variables) { return new ValidationProfileImpl(flavour, details, hash, rules, variables); } private  ValidationProfileImpl(); private  ValidationProfileImpl(final PDFAFlavour flavour,
            final ProfileDetails details, final String hash,
            final Set<Rule> rules, final Set<Variable> variables); private  ValidationProfileImpl(final PDFAFlavour flavour,
                                  final ProfileDetails details, final String hash,
                                  final SortedSet<Rule> rules, final Set<Variable> variables); @Override PDFAFlavour getPDFAFlavour(); @Override ProfileDetails getDetails(); @Override String getHexSha1Digest(); @Override Set<Rule> getRules(); @Override Set<Variable> getVariables(); @Override Set<Rule> getRulesByObject(final String objectName); @Override Set<Variable> getVariablesByObject(String objectName); @Override Rule getRuleByRuleId(RuleId id); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public final void testFromValues() { ValidationProfile rule = Profiles.profileFromValues(PDFAFlavour.NO_FLAVOUR, ProfileDetailsImpl.defaultInstance(), "hash", Collections.<Rule>emptySet(), Collections.<Variable>emptySet()); ValidationProfile defaultInstance = Profiles.defaultProfile(); assertFalse(rule == defaultInstance); assertTrue(rule.equals(defaultInstance)); }