code:     public void setUp() throws Exception {
          sshKey = SshdServerMock.generateKeyPair();
          System.setProperty(PluginImpl.TEST_SSH_KEYFILE_LOCATION_PROPERTY, sshKey.getPrivateKey().getAbsolutePath());
          server = new SshdServerMock();
          sshd = SshdServerMock.startServer(server);
          server.returnCommandFor("gerrit ls-projects", SshdServerMock.EofCommandMock.class);
          server.returnCommandFor(GERRIT_STREAM_EVENTS, SshdServerMock.CommandMock.class);
          server.returnCommandFor("gerrit review.*", SshdServerMock.EofCommandMock.class);
          server.returnCommandFor("gerrit version", SshdServerMock.EofCommandMock.class);
      }
  
      /**
       * Runs after test method.
       *
       * @throws Exception throw if so.
       */
      @After
  