PeerConnectionClient createPeerConnectionClient(
      MockRenderer localRenderer,
      MockRenderer remoteRenderer,
      PeerConnectionParameters peerConnectionParameters,
      EglBase.Context eglContext) {
    List<PeerConnection.IceServer> iceServers = new LinkedList<PeerConnection.IceServer>();
    SignalingParameters signalingParameters =
        new SignalingParameters(
            iceServers,
            true, // iceServers, initiator.
            null,
            null,
            null, // clientId, wssUrl, wssPostUrl.
            null,
            null); // offerSdp, iceCandidates.

    PeerConnectionClient client = PeerConnectionClient.getInstance();
    PeerConnectionFactory.Options options = new PeerConnectionFactory.Options();
    options.networkIgnoreMask = 0;
    options.disableNetworkMonitor = true;
    client.setPeerConnectionFactoryOptions(options);
    client.createPeerConnectionFactory(
        getInstrumentation().getTargetContext(), peerConnectionParameters, this);
    client.createPeerConnection(eglContext, localRenderer, remoteRenderer, signalingParameters);
    client.createOffer();
    return client;
  }