private void logCaseToDebug(final TestCase<I, O> testCase) {
            if (testCase.isExpectedToThrow()) {
                LOGGER.debug(() -> LogUtil.message(
                        "Running test case - {}, expected to throw: '{}'",
                        TestCase.valueToString("input", testCase.getInput()),
                        testCase.getExpectedThrowableType().getSimpleName()));
            } else {
                LOGGER.debug(() -> LogUtil.message("Running test case - {}, expected {}",
                        TestCase.valueToString("input", testCase.getInput()),
                        TestCase.valueToString("output", testCase.getExpectedOutput())));
            }
        }
Build the {@link Stream} of {@link DynamicTest} with all the added test cases.
stroom-test-common/src/main/java/stroom/test/common/DynamicTestBuilder.java