title: Unit testing of private methods
body: <p>I am in the process of writing some unit tests.
  In particular I want to test some private methods.</p>
  
  <p>So far the I have come up with using.</p>
  
  <pre><code>#define private public
  </code></pre>
  
  <p>But I am not happy with this as it will destroy all encapsulation from the point of view of the unit test.</p>
  
  <p>What methods do you use to unit-test private methods.</p>