private String valueToStr(final Object value) {
            final StringBuilder stringBuilder = new StringBuilder();

            if (value == null) {
                stringBuilder.append("null");
            } else if (value instanceof final Double valDbl) {
                stringBuilder.append(ModelStringUtil.formatCsv(valDbl, 5, true))
                        .append("D");
            } else if (value instanceof final Integer valInt) {
                stringBuilder.append(ModelStringUtil.formatCsv(valInt.longValue()));
            } else if (value instanceof final Long valLong) {
                stringBuilder.append(ModelStringUtil.formatCsv(valLong))
                        .append("L");
            } else if (value instanceof final Tuple valTuple) {
                final String tupleContentsStr = valTuple.toSeq()
                        .toStream()
                        .map(this::valueToStr)
                        .collect(Collectors.joining(", "));

                stringBuilder.append("(")
                        .append(tupleContentsStr)
                        .append(")");
            } else if (value instanceof final Object[] arr) {
                stringBuilder.append("[")
                        .append(Arrays.stream(arr)
                                .map(this::valueToStr)
                                .collect(Collectors.joining(", ")))
                        .append("]");
            } else if (NullSafe.test(value.toString(), str -> str.contains("$$Lambda"))) {
                // Not sure if there is anything useful we can show for the lambda so just do this
                stringBuilder.append("lambda");
            } else {
                String valStr = value.toString();

                stringBuilder.append("'")
                        .append(valStr)
                        .append("'");
            }
            return stringBuilder.toString();
        }
Build the {@link Stream} of {@link DynamicTest} with all the added test cases.
stroom-test-common/src/main/java/stroom/test/common/DynamicTestBuilder.java