@Test
    void verifyOperation() {
        val results = OAuth20TokenGeneratedResult.builder().accessToken(getAccessToken())
            .grantType(OAuth20GrantTypes.AUTHORIZATION_CODE)
            .registeredService(getRegisteredService(UUID.randomUUID().toString(), "secret"))
            .details(Map.of())
            .build();
        assertTrue(results.getAccessToken().isPresent());
        assertTrue(results.getGrantType().isPresent());
        assertTrue(results.getRegisteredService().isPresent());
        assertTrue(results.getDetails().isEmpty());
        assertNotNull(results.toString());
    }
This is {@link OAuth20TokenGeneratedResultTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20TokenGeneratedResultTests.java