@Override
    public boolean isTemplateAvailable(ThemeContext themeContext, String viewName) {
        var suffix = thymeleafProperties.getSuffix();
        // Currently, we only support Path here.
        var path = themeContext.getPath().resolve("templates").resolve(viewName + suffix);
        return Files.exists(path);
    }
@Test
    void templateAvailableTest() throws FileNotFoundException, URISyntaxException {
        var themeUrl = ResourceUtils.getURL("classpath:themes/default");
        var themePath = Path.of(themeUrl.toURI());

        when(thymeleafProperties.getSuffix()).thenReturn(".html");
        var themeContext = ThemeContext.builder()
            .name("default")
            .path(themePath)
            .build();
        boolean templateAvailable = provider.isTemplateAvailable(themeContext, "fake");
        assertFalse(templateAvailable);

        templateAvailable = provider.isTemplateAvailable(themeContext, "index");
        assertTrue(templateAvailable);

        templateAvailable = provider.isTemplateAvailable(themeContext, "timezone");
        assertTrue(templateAvailable);
    }