@Test(dataProvider = "messages")
public void testFormatTemplate(String request, String template, String expected) throws Exception {

    givenWilmaRequestWithBody(request);
    byte[] formattedResponse = underTest.formatResponse(wilmaRequest, response, template.getBytes(), null);
    assertEquals(whitespaceFree(new String(formattedResponse)), whitespaceFree(expected));
}