title: How to write jUnit tests for private methods
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/34571/whats-the-best-way-of-unit-testing-private-methods">What&#39;s the best way of unit testing private methods?</a>  </p>
  </blockquote>
  
  
  
  <p>As private method's visibility does not allow for them to be seen outside of the class, how can you write tests to make sure they work as expected?</p>
  
  <p>Suppose making them protected or public is not an option. Additionally suppose that your test code must reside separately from your production code.</p>
  
  <p>Please advise and if possible, provide an example</p>