My first unit tests would only work if I had an xmldb up and running. That was not really convenient. So I looked around for a XQJ implementation that I could use from my unit tests. Saxon9-HE came to the rescue.
I added following dependency to my pom.xml after installing the jar in my local maven repo
xquery for unit-test: splitting a sentence into words
xquery for unit-test: retrieving all ASF members from pom.xml
unit-test: transform a plain string of words into xml output
unit-test: return the names of all ASF-members of pom.xml