* @param failOnConnect If {@code true} the server should fail incoming connection immediately.
* @return Server instance.
* @throws GridException If failed.
*/
private GridClientTestRestServer runServer(int idx, boolean failOnConnect) throws GridException {
GridClientTestRestServer srv = new GridClientTestRestServer(FIRST_SERVER_PORT + idx, failOnConnect, log());
srv.start();
srvs[idx] = srv;
return srv;
}