code: function setCurrentServer(server) {
      if (server) {
          server.makeCurrent();
          assert.strictEqual(getCurrentServer(), server);
      }
      else {
          init.initOptions.serverUrl = null;
      }
  }
docs: sets the current [[Server]].
  
  @param server to set state of.
  
  @internal for library use only.