@Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(crashHeader);
    dest.writeString(crashReportText);
    dest.writeParcelable(fullReport, 0);
  }
@Test
  public void testHappyPath() {
    String header = "header";
    String crashReport = "a huge crash report";
    Uri someFile = Uri.fromFile(new File("/blah/blah.txt"));
    BugReportDetails details = new BugReportDetails(header, crashReport, someFile);

    Assert.assertSame(header, details.crashHeader);
    Assert.assertSame(crashReport, details.crashReportText);
    Assert.assertSame(someFile, details.fullReport);

    final Parcel parcel = Parcel.obtain();
    parcel.setDataPosition(0);
    details.writeToParcel(parcel, 0);
    parcel.setDataPosition(0);

    BugReportDetails read = new BugReportDetails(parcel);

    Assert.assertEquals(details.crashHeader, read.crashHeader);
    Assert.assertEquals(details.crashReportText, read.crashReportText);
    Assert.assertEquals(details.fullReport, read.fullReport);
  }