FALCON-674 General code factored out for ProcessInstance* tests. Contributed by Paul Isaychuk
Checkstyle problems fixed