protected void assertLogCall(final LogArgs logArgs,
                                 final Severity expectedSeverity,
                                 final String... expectedMessageParts) {
        if (logArgs != null) {
            Assertions.assertThat(logArgs.getSeverity())
                    .isEqualTo(expectedSeverity);

            for (final String expectedMessagePart : expectedMessageParts) {
                Assertions.assertThat(logArgs.getMessage())
                        .containsIgnoringCase(expectedMessagePart);
            }
        }
    }
Assert the number of times {@link ErrorReceiver#log(Severity, Location, String, String, Throwable)}
is called and get all the call args.

@param callCount Expected number of calls
@return All args used in the calls
stroom-pipeline/src/test/java/stroom/pipeline/xsltfunctions/AbstractXsltFunctionTest.java