@Test(expectedExceptions = ResponseFormattingFailedException.class)
public void testFormatTemplateWhenRegexpSyntaxIncorrectShouldThrowException() throws Exception {

    //GIVEN
    templateResource = "123 this is a test template 123".getBytes();
    parameterList.addParameter(new Parameter("{0-2}+", "HELLO"));
    //WHEN
    underTest.formatResponse(request, response, templateResource, parameterList);
    //THEN
}