@Test
    public void testEvaluateExpression_executionError() throws Exception {
        final String expr = "bad expression";

        expect(evaluatorMock.evaluate(expr)).andThrow(new ExpressionExecuteException(expr, null));

        try {
            support.replayAll();
            testedObject.evaluate(expr);
            support.verifyAll();
        } catch (ExpressionExecuteException ex) {
            return;
        } catch (Exception ex) {
            fail(ex.getMessage());
        } finally {
            assertTrue(Double.isNaN(testedObject.getResult()));
        }

        fail();
    }