public void recordTestResults() throws Exception {
        File results = new File(directory, name + ".java.results");
        try (FileWriter fw = new FileWriter(results)) {
            fw.write(serialize());
        }
    }
Helper class to implement unit tests that should produce the same result in different implementations.
vdslib/src/test/java/com/yahoo/vdslib/distribution/CrossPlatformTestFactory.java