title: Android Unit Testing: Bundle/Parcelable
body: <p>How do you unit test Parcelable?  I created a Parcelable class, and wrote this unit test</p>
  
  <pre><code>TestClass test = new TestClass();
  Bundle bundle = new Bundle();
  bundle.putParcelable("test", test);
  
  TestClass testAfter = bundle.getParcelable("test");
  assertEquals(testAfter.getStuff(), event1.getStuff());
  </code></pre>
  
  <p>I purposely try to fail the test by returning null in the <code>createFromParcel()</code>, but it seems to succeed. It looks like it doesn't get parceled until it's needed. How do I force the Bundle to..bundle?</p>