private void resetMocks() {
      try {
        reset(factory, client);
        when(factory.getNetworkClient()).thenReturn(client);
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
    }
@param replicaType the {@link ReplicaType} for the request.
@return a new {@link RequestInfo} with a new correlation ID.
ambry-network/src/test/java/com/github/ambry/network/CompositeNetworkClientTest.java