City extends Model implements Parcelable { @Override public void writeToParcel(Parcel dest, int flags) { dest.writeValue(id); dest.writeString(name); dest.writeString(picture); dest.writeValue(lat); dest.writeValue(lng); } City(); private  City(Parcel in); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); @JsonProperty
    @Column("name")
    public String name; @JsonProperty(value = "ville_img")
    @Column("picture")
    public String picture; @JsonProperty
    @Column("lat")
    public Double lat; @JsonProperty
    @Column("lng")
    public Double lng; static final Parcelable.Creator<City> CREATOR; }
@Test public void should_restore_from_parcelable() { City city = new City(); city.name = "Paris"; city.lat = 48.85; city.lng = 2.34; city.picture = "img/villes/BBL.jpg"; Parcel parcel = Parcel.obtain(); city.writeToParcel(parcel, 0); parcel.setDataPosition(0); City fromParcel = City.CREATOR.createFromParcel(parcel); assertThat(fromParcel.name).isEqualTo("Paris"); assertThat(fromParcel.lat).isWithin(4.85); assertThat(fromParcel.lng).isWithin(2.34); assertThat(fromParcel.picture).isEqualTo("img/villes/BBL.jpg"); }