public CasesBuilder<I, O> withBeforeTestCaseAction(final Runnable action) {
            this.beforeCaseAction = action;
            return this;
        }
Set an action to run before each test case. Note {@link org.junit.jupiter.api.BeforeEach}
is NOT called before
each case in a dynamic test, so this is an alternative. Note also that the same instance of the test
class is used for each test case.
stroom-test-common/src/main/java/stroom/test/common/DynamicTestBuilder.java