@Test
public void shouldEscapeInputString() throws ParseException {

    String input = "{! field=test}";
    String expected = "\\{\\! field=test\\}";
    assertEquals(expected, formatter.parse(input, Locale.getDefault()));
}