private static File getTempDir() throws IOException {
        // The pom file sets java.io.tmpdir to ${project.build.directory}. This doesn't happen within (e.g.) IntelliJ, but happens
        // on Screwdriver (tm). So if we're running tests on Screwdriver (tm), put the log in 'surefire-reports' instead so the
        // user can find them along with the other test reports.
        final File surefireReportsDir = new File(System.getProperty("java.io.tmpdir") + File.separator + "surefire-reports");
        if (surefireReportsDir.isDirectory()) {
            return File.createTempFile(DIR_PREFIX, DIR_POSTFIX, surefireReportsDir);
        }

        return File.createTempFile(DIR_PREFIX, DIR_POSTFIX);
    }
This class sets up a zookeeper server, such that we can test fleetcontroller zookeeper parts without stubbing in the client.
clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ZooKeeperTestServer.java