@Test
    void verifyFailsOperation() {
        val themeResolver = mock(ThemeResolver.class);
        when(themeResolver.resolveThemeName(any())).thenThrow(new RuntimeException());
        val viewResolver = new ThemeBasedViewResolver(themeResolver, mock(ThemeViewResolverFactory.class));
        assertNull(viewResolver.resolveViewName("viewName", Locale.getDefault()));
    }
This is {@link ThemeBasedViewResolverTests}.

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