@Test
    void verifySubjectNoRecipient() {
        val builder = new NonInflatingSaml20ObjectBuilder(openSamlConfigBean);
        val id = builder.newNameID(NameIDType.UNSPECIFIED, "casuser");
        val subjectId = builder.newNameID(NameIDType.UNSPECIFIED, "casuser");
        val confirmation = builder.newSubjectConfirmation(null, ZonedDateTime.now(ZoneOffset.UTC),
            "2ab8d364-7d6a-4e3e-ab17-c48b87c487e2", ZonedDateTime.now(ZoneOffset.UTC), null);
        val sub = builder.newSubject(id, subjectId, confirmation);
        assertNotNull(sub);
    }
This is {@link NonInflatingSaml20ObjectBuilderTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-core/src/test/java/org/apereo/cas/support/saml/util/NonInflatingSaml20ObjectBuilderTests.java