public void loadTestResults() throws Exception {
        File reference = new File(directory, name + ".reference.results");
        if (!reference.exists()) {
            return;
        }
        try (BufferedReader br = new BufferedReader(new FileReader(reference))) {
            StringBuilder sb = new StringBuilder();
            while (true) {
                String line = br.readLine();
                if (line == null) break;
                sb.append(line);
            }
            parse(sb.toString());
        }
    }
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