expressionContext.registerFunction(
new ImmutableExpandedName(getURI(),
getFunctionName()),
createTestableFunction(expressionFactory));
accessorMock = new DevicePolicyValueAccessorMock(
"accessorMock", expectations);
// Allow XPath expressions access to the device
expressionContext.setProperty(
DevicePolicyValueAccessor.class, accessorMock,