title: C++ Mock/Test boost::asio::io_stream - based Asynch Handler
body: <p>I've recently returned to C/C++ after years of C#. During those years I've found the value of Mocking and Unit testing.</p>
  
  <p>Finding resources for Mocks and Units tests in C# is trivial. WRT Mocking, not so much with C++.</p>
  
  <p>I would like some guidance on what others do to mock and test Asynch io_service handlers with boost. </p>
  
  <p>For instance, in C# I would use a MemoryStream to mock an IO.Stream, and am assuming this is the path I should take here.</p>
  
  <ul>
  <li>C++ Mock/Test best practices</li>
  <li>boost::asio::io_service Mock/Test best practices</li>
  <li>C++ Async Handler Mock/Test best practices</li>
  </ul>
  
  <p>I've started the process with googlemock and googletest.</p>