Mock PreferenceManager example
<p>I am trying to test several methods via JUNIT but I am unsure on how to create a mock up on the PreferenceManager class.  I found one article similar to this but does not give many details on how to override the getSharedPrefereces and getPackage methods <a href="http://stackoverflow.com/questions/3337558/how-to-mock-preferencemanager-in-android">How to mock PreferenceManager in Android?</a>.  </p>

<p>I am kind of new to using Android's testing framework so if anyone can share some code on how to accomplish this it would be greatly appreciated.</p>
