@Test
public void evaluateInCaseOfException() throws Exception {

    mockContext.returns(new HashSet<KeyValuePair<Variable>>().iterator())
        .iterator();
    adaptee.raises(new ScriptException("test")).eval((String) null);
    try {
        adapter.evaluate(mockContext.getMock(), scriptSource);
        fail("ScriptException expected");
    } catch (org.webharvest.exception.ScriptException e) {
        // ok, it's expected
    }
    adaptee.assertInvoked().eval(same(SCRIPT));
}