Another one of Alex’s patches adds a <scope>test</scope> dependency on org.fluttercode.datafactory:datafactory, which helps assembling complex test object trees. One caveat is that Datafactory is under LGPL:
https://github.com/andygibson/datafactory/blob/master/license.txt I am about 80% certain that this is ok for a unit test dependency, but maybe someone knows of precedents on other apache projects and can confirm this? Andrus