@Test
    void verifyAccessStrategyWithEndpoint() {
        getRegisteredServiceTypes().forEach(type -> {
            val registeredService = buildRegisteredServiceInstance(RandomUtils.nextInt(), type)
                .setId(RegisteredServiceDefinition.INITIAL_IDENTIFIER_VALUE);
            val authz = new RemoteEndpointServiceAccessStrategy();
            authz.setEndpointUrl("http://www.google.com?this=that");
            authz.setAcceptableResponseCodes("200,405,403");
            registeredService.setAccessStrategy(authz);

            val r2 = serviceRegistry.save(registeredService);
            val r3 = serviceRegistry.findServiceById(r2.getId());
            assertEquals(r2, r3);
        });
    }
Abstracted service registry tests for all implementations.

@author Timur Duehr
@since 5.3.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/AbstractServiceRegistryTests.java