protected int getTestServerPort() {
        String spPort = System.getProperty("apiman.junit.server-port");
        if (spPort != null) {
            return Integer.parseInt(spPort);
        }
        if (USE_PROXY) {
            return PROXY_PORT;
        } else {
            return TEST_SERVER.serverPort();
        }
    }
@return the port to use when sending requests
manager/test/api/src/main/java/io/apiman/manager/test/junit/ManagerRestTester.java