@Test
void evaluateWithSecureUberspectorActiveByDefault() throws Exception
{

    this.engine.initialize(new Properties());
    String content = "#set($foo = 'test')#set($object = $foo.class.forName('java.util.ArrayList')"
        + ".newInstance())$object.size()";
    assertEvaluate("$object.size()", content, DEFAULT_TEMPLATE_NAME);
    // Verify that we log a warning and verify the message.
    assertEquals(
        "Cannot retrieve method forName from object of class java.lang.Class due to security restrictions.",
        logCapture.getMessage(0));
}