adept to check for null value in the attribute-value loop
remove the empty collection check
extend junit to test saml-response