socketServerConnectionFactory = new SocketServerRpcConnectionFactory(0,
0, null, true, fakeSocketFactory);
}
public void testCreateConnection() throws IOException {
Request request1 = createRequest(1);
FakeSocket socket1 = new FakeSocket(true).withRequest(request1);
fakeSocketFactory.returnsSocket(socket1);
Connection connection1 = socketServerConnectionFactory.createConnection();
Request request2 = createRequest(1);
FakeSocket socket2 = new FakeSocket(true).withRequest(request2);
fakeSocketFactory.returnsSocket(socket2);
Connection connection2 = socketServerConnectionFactory.createConnection();
Request.Builder builder = Request.newBuilder();