title: Mocking net.Socket for unit testing
body: <p>I created a wrapper object to interact with the net module. Objects that implement this wrapper can register callbacks to be called when any of the events from net.Server is emitted.</p>
  
  <p>Now I'm trying to test these callbacks and I don't know how to create a fake Socket as it comes from a new connection, to pass it to the callbacks.</p>
  
  <p>Does anyone have any idea on how to do it?</p>
  
  <p>Thank you very much.</p>