* @throws Exception throw if so.
*/
@Before
public void setUp() throws Exception {
SshdServerMock.generateKeyPair();
serverOne = new SshdServerMock();
serverTwo = new SshdServerMock();
sshdOne = SshdServerMock.startServer(portOne, serverOne);
sshdTwo = SshdServerMock.startServer(portTwo, serverTwo);
serverOne.returnCommandFor("gerrit ls-projects", SshdServerMock.EofCommandMock.class);
serverOne.returnCommandFor(GERRIT_STREAM_EVENTS, SshdServerMock.CommandMock.class);
serverOne.returnCommandFor("gerrit review.*", SshdServerMock.EofCommandMock.class);