    @Test
    public void testLastStr(){

        String ftl = "${str?substring(str?last_index_of('.') + 1)}";
        Map<String, String> model = new HashMap<>();
        model.put("str", "java.utils.List");
        String result = FreeMarkerUtils.generate(ftl, model);
        Assert.assertEquals("List", result);
    }