private void doTest(String fileToMigrate, String expectedResultFile, String versionToMigrateTo) throws Exception {
        Version version = new Version();
        setVersion(version, versionToMigrateTo);
        StringBuilderLogger logger = new StringBuilderLogger();

        File tempOutputFile = File.createTempFile("_apiman", "tst");
        tempOutputFile.deleteOnExit();

        try {
            DataMigrator migrator = new DataMigrator();
            migrator.setVersion(version);
            
            InputStream input = getClass().getClassLoader().getResourceAsStream(fileToMigrate);
            OutputStream output = new FileOutputStream(tempOutputFile);
            
            // Migrate the data!
            migrator.migrate(input, output);
            
            JsonCompare compare = new JsonCompare();
            compare.setArrayOrdering(JsonArrayOrderingType.strict);
            compare.setIgnoreCase(false);
            compare.setMissingField(JsonMissingFieldType.fail);
            try ( FileInputStream actual = new FileInputStream(tempOutputFile);
                  InputStream expected = getClass().getClassLoader().getResourceAsStream(expectedResultFile);  ) {
                compare.assertJson(expected, actual);
            }
        } finally {
            FileUtils.deleteQuietly(tempOutputFile);
        }
    }
Test method for {@link io.apiman.manager.api.migrator.DataMigrator#migrate(java.io.File, java.io.File)}.
manager/api/migrator/src/test/java/io/apiman/manager/api/migrator/DataMigratorTest.java