if (statusLine == null) {
serverFake = new HttpServerFake(port);
} else {
serverFake = new HttpServerFake(port, null, statusLine);
}
serverFake.start();
return serverFake;
}
private HttpsServerFake startHttpsServerFake(String statusLine) throws Exception {
int port = new Random().nextInt(9 * 1024) + 1024;