@Test
public void testUntrustedJavaConsequence() throws Exception {

    try {
        MVELSafeHelper.getEvaluator().eval("System.exit(0);");
        Assert.fail("Should have raised an exception...");
    } catch (ShouldHavePrevented e) {
        Assert.fail("The security policy for the rule should have prevented this from executing...");
    } catch (PropertyAccessException e) {
        // test succeeded. the policy in place prevented the rule from executing the System.exit().
    }
}