@Test
    void verifyOAuthActionWithoutMDUI() throws Throwable {
        val ctx = MockRequestContext.create(applicationContext);
        val service = RegisteredServiceTestUtils.getService();
        WebUtils.putServiceIntoFlowScope(ctx, service);
        val svc = RegisteredServiceTestUtils.getRegisteredService(service.getId());
        servicesManager.save(svc);

        val event = oauth20RegisteredServiceUIAction.execute(ctx);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, event.getId());
        val mdui = WebUtils.getServiceUserInterfaceMetadata(ctx, Serializable.class);
        assertNull(mdui);
    }
This is {@link OAuth20RegisteredServiceUIActionTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-oauth-webflow/src/test/java/org/apereo/cas/support/oauth/web/flow/OAuth20RegisteredServiceUIActionTests.java