    @Test
    public void testFloatFormatModifier() throws IOException {

        TemplateEncoder encoder = new TemplateEncoder(getClass().getResource("format1.txt"));

        String result;
        try (StringWriter writer = new StringWriter()) {
            encoder.write(4.5, writer);
            result = writer.toString();
        }

        assertEquals("4.50", result);
    }