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