@Test
    void verifyEntityAttachment() {
        var service = buildRegisteredServiceInstance(RandomUtils.nextInt(), CasRegisteredService.class).assignIdIfNecessary();
        service = newServiceRegistry.save(service);
        assertNotNull(service);
        service = newServiceRegistry.findServiceById(service.getId(), CasRegisteredService.class);
        assertNotNull(service);
        service.setEvaluationOrder(999);
        val currentId = service.getId();
        service = newServiceRegistry.save(service);
        assertEquals(currentId, service.getId());
        service = newServiceRegistry.findServiceById(service.getId(), CasRegisteredService.class);
        assertEquals(999, service.getEvaluationOrder());
    }
Handles tests for {@link JpaServiceRegistry}

@author battags
@since 3.1.0
support/cas-server-support-jpa-service-registry/src/test/java/org/apereo/cas/services/JpaServiceRegistryTests.java