@Test
        void verifyCustomSource() throws Throwable {
            val context = MockRequestContext.create(applicationContext);

            val registeredService = RegisteredServiceTestUtils.getRegisteredService(UUID.randomUUID().toString());
            registeredService.setTheme("my-theme");
            servicesManager.save(registeredService);

            val service = RegisteredServiceTestUtils.getService(registeredService.getServiceId());
            WebUtils.putServiceIntoFlowScope(context, service);

            assertEquals("my-theme", themeResolver.resolveThemeName(context.getHttpServletRequest()));
        }
This is {@link RegisteredServiceThemeResolverTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-themes/src/test/java/org/apereo/cas/services/web/RegisteredServiceThemeResolverTests.java