policyDAO.save(policy);
}
@Test(expected = InvalidEntityException.class)
public void saveSecondPasswordPolicy() {
PasswordPolicySpec passwordPolicy = new PasswordPolicySpec();
passwordPolicy.setMaxLength(8);
passwordPolicy.setMinLength(6);
PasswordPolicy policy = new PasswordPolicy(true);
policy.setSpecification(passwordPolicy);
policy.setDescription("global password policy");