@Test
public void testFormatTemplateWhenMultipleParametersShouldReplaceString() throws Exception {

    //GIVEN
    templateResource = "this is a test template".getBytes();
    parameterList.addParameter(new Parameter("t", "blabla"));
    parameterList.addParameter(new Parameter("is", "is not"));
    parameterList.addParameter(new Parameter("a", "o"));
    //WHEN
    byte[] actual = underTest.formatResponse(request, response, templateResource, parameterList);
    //THEN
    assertEquals(actual, "bloblohis not is not o blobloesbloblo blobloemploblobloe".getBytes());
}