// set up expectations
accessorMock.expects.getDependentPolicyValue(
DevicePolicyConstants.RENDER_MODE).returns(renderMode);
DIMonochromeFunction function = new DIMonochromeFunction();
Value result = function.execute(exprContext, accessorMock,
defaultValue);
assertTrue(result instanceof SimpleIntValue);
assertTrue(expectedResult == ((SimpleIntValue)result).asJavaInt());
}