// set expectations
accessorMock.expects.getDependentPolicyValue(
DevicePolicyConstants.PIXEL_DEPTH).returns(pixelDepth);
// test!
DIColorFunction function = new DIColorFunction();
Value result = function.execute(exprContext, accessorMock,
defaultValue);
// checks that result is as expected
assertTrue(result instanceof SimpleIntValue);
assertTrue(expectedValue.asJavaInt() ==