@Test
public void testGetVariableMessage() {

    String firstName = "John";
    String lastName = "Doe";
    Map<String, String> variables = new HashMap<>();
    variables.put("firstname", firstName);
    variables.put("lastname", lastName);
    String text = localService.getMessage("fr", "pes_notification", "$.pes.unittest",
            variables);
    assertThat(text, is(
            "Bonjour John Doe, le test unitaire est passé"));
}