@Test
public void testEvaluateStrict()
{

    String template = "${baz}";
    Map<String, Object> variables = new HashMap<>();
    variables.put("foo", "bar");
    String logTag = "test";
    try
    {
        velocityNonStrictHelper.evaluate(template, variables, logTag);
        fail();
    }
    catch (MethodInvocationException methodInvocationException)
    {
        Assert.assertEquals("Exception message not equal.", "Variable $baz has not been set at test[line 1, column 1]",
            methodInvocationException.getMessage());
    }
}