@Test
  public void testAuthnResponse() throws CloneNotSupportedException {
    int QAAL = 3;
    final EIDASAuthnResponse eidasAuthnResponse = new EIDASAuthnResponse();
    eidasAuthnResponse.setTokenSaml(null);
    eidasAuthnResponse.setTokenSaml("6E97069A1754ED".getBytes());
    eidasAuthnResponse.setCountry("UK");
    eidasAuthnResponse.setSamlId("QDS2QFD");
    eidasAuthnResponse.setAudienceRestriction("PUBLIC");
    eidasAuthnResponse.setInResponseTo("6E97069A1754ED");
    eidasAuthnResponse.setFail(false);
    eidasAuthnResponse.setStatusCode(EIDASStatusCode.REQUESTER_URI.toString());
    eidasAuthnResponse.setSubStatusCode(EIDASSubStatusCode.AUTHN_FAILED_URI.toString());
    eidasAuthnResponse.setMessage("TEST");
    eidasAuthnResponse.setNotBefore(new DateTime());
    eidasAuthnResponse.setNotOnOrAfter(new DateTime());
    PersonalAttributeList paler = new PersonalAttributeList();

    final PersonalAttribute eIDNumber = new PersonalAttribute();
    eIDNumber.setName("eIdentifier");
    eIDNumber.setIsRequired(true);
    paler.add(eIDNumber);
    eidasAuthnResponse.setPersonalAttributeList(paler);
    eidasAuthnResponse.setPersonalAttributeList(null);

    Assert.assertNotNull(eidasAuthnResponse.getTokenSaml());
    Assert.assertNotNull(eidasAuthnResponse.getCountry());
    Assert.assertNotNull(eidasAuthnResponse.getSamlId());
    Assert.assertNotNull(eidasAuthnResponse.getAudienceRestriction());
    Assert.assertNotNull(eidasAuthnResponse.getInResponseTo());
    Assert.assertNotNull(eidasAuthnResponse.isFail());
    Assert.assertNotNull(eidasAuthnResponse.getStatusCode());
    Assert.assertNotNull(eidasAuthnResponse.getSubStatusCode());
    Assert.assertNotNull(eidasAuthnResponse.getNotBefore());
    Assert.assertNotNull(eidasAuthnResponse.getNotOnOrAfter());
    Assert.assertNotNull(eidasAuthnResponse.getPersonalAttributeList());
    Assert.assertNotNull(eidasAuthnResponse.getMessage());
  }
 @Test
 public void testEIDASSubStatusCode() {
   Assert.assertEquals(
       EIDASSubStatusCode.AUTHN_FAILED_URI.toString(),
       "urn:oasis:names:tc:SAML:2.0:status:AuthnFailed");
 }