public static void compareStrings(final String expected, final String actual, final String message) {
        final int index = compareStrings(actual, expected);

        // examine the location if not -1.
        if (index != -1) {
            final String expectedComp = getComparisonString(expected, index);
            final String actualComp = getComparisonString(actual, index);

            if (!expectedComp.equals(actualComp)) {
                System.out.println("Actual XML was");
                System.out.println(actual);
                System.out.println("Expected XML was");
                System.out.println(expected);

                fail(message + index + " wrote output to system out");
            }
        }
    }
Provides methods that are used by multiple tests.
stroom-test-common/src/main/java/stroom/test/common/ComparisonHelper.java