public static boolean checkArgument(final boolean test,
                                        final String format,
                                        final Object... formatArgs) {
        if (!test) {
            throw new IllegalArgumentException(message(format, formatArgs));
        }
        return true;
    }
@param test The test to evaluate
@param format Either logback style ('{}') format string or String.format() style.
@param formatArgs Args for String.format
@return True if test passes.
stroom-test-common/src/main/java/stroom/test/common/data/Utils.java