private void setupTestDataScript(final Path tempDir) {
        final String testDataScriptContent = getTestDataScript();

        LOGGER.debug("Test data script content\n{}", ConsoleColour.yellow(testDataScriptContent));

        if (NullSafe.isEmptyString(testDataScriptContent)) {
            fail("No test data script content provided");
        } else {
            final MigrationVersion testDataVersion = getTestDataVersion();
            final MigrationVersion targetVersion = getTargetVersion();
            final String filename = "V"
                                    + testDataVersion.getVersion()
                                    + "__test_data_for_"
                                    + targetVersion.getVersion()
                                    + ".sql";
            final Path testDataFile = tempDir.resolve(filename);

            LOGGER.debug("Writing test data script to temporary file {}",
                    testDataFile.normalize().toAbsolutePath());
            try {
                Files.writeString(testDataFile, testDataScriptContent);
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
    }
@return The location of the migration containing the test data.
See {@link org.flywaydb.core.api.configuration.FluentConfiguration#locations(String...)}
stroom-test-common/src/main/java/stroom/test/common/util/db/AbstractSingleFlywayMigrationTest.java