NoteModel implements Parcelable { public void update(Note note) { noteId = note.getObjectId(); title.set(note.getTitle()); text.set(note.getText()); error.set(false); } NoteModel(); protected  NoteModel(Parcel in); ObservableBoolean getError(); ObservableString getTitle(); ObservableString getText(); ObservableInt getTitleError(); ObservableInt getTextError(); void update(Note note); @Override void writeToParcel(Parcel dest, int flags); @Override int describeContents(); boolean isLoaded(); String getNoteId(); void setNoteId(String noteId); static final Creator<NoteModel> CREATOR; }
@Test public void testParcelable() { NoteModel model = new NoteModel(); model.update(TestData.noteA()); ParcelableTester.check(model, NoteModel.CREATOR); }