CMS-3979 Implement tests for thymeleaf module. Added java tests.