See the JUnit test for how to run Freemarker. Freemarker example is in the test/resources.

Created simple CDI producer and Application Scoped service.