Rather than hard-coding assumptions about the line endings, use a PrintWriter to produce the multi-line expected output
Add samples and integration tests for Atomikos and Bitronix JTA. See gh-947