@Test
    void verifyOperation() {
        val service1 = RegisteredServiceTestUtils.getRegisteredService(UUID.randomUUID().toString());
        servicesManager.save(service1);

        service1.setDescription("This is changed");
        service1.setAttributeReleasePolicy(new DenyAllAttributeReleasePolicy());
        servicesManager.save(service1);

        val history = objectVersionRepository.getHistory(service1);
        assertEquals(2, history.size());

        history.forEach(item -> {
            assertNotNull(item.date());
            assertNotNull(item.entity());
            assertNotNull(item.id());
        });
        assertNotNull(objectVersionRepository.getChangelog(service1));
    }
This is {@link EntityHistoryRepositoryMongoDbTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-javers/src/test/java/org/apereo/cas/version/EntityHistoryRepositoryMongoDbTests.java