@Test
    void verifyEndpointWithoutLocation() {
        val logoutRequest = mock(LogoutRequest.class);
        val endpoint = mock(SingleLogoutService.class);
        val adaptor = mock(SamlRegisteredServiceMetadataAdaptor.class);
        when(adaptor.getSingleLogoutService(anyString())).thenReturn(endpoint);
        assertThrows(SamlException.class, () -> SamlIdPUtils.determineEndpointForRequest(Pair.of(logoutRequest, new MessageContext()),
            adaptor, SAMLConstants.SAML2_POST_BINDING_URI));
    }
This is {@link SamlIdPUtilsTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/util/SamlIdPUtilsTests.java