InfoItem implements Parcelable { public void setSubContent(List<InfoItem> subContent) { this.subContent = subContent; } InfoItem(); protected  InfoItem(Parcel in); String getTitle(); void setTitle(String title); String getImage(); void setImage(String image); String getHtml(); void setHtml(String html); String getUrl(); void setUrl(String url); String getUrlAndroid(); void setUrlAndroid(String urlAndroid); List<InfoItem> getSubContent(); void setSubContent(List<InfoItem> subContent); InfoType getType(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); @Override boolean equals(Object o); @Override int hashCode(); static final Creator<InfoItem> CREATOR; }
@Test @Override public void equalsAndHash() { InfoItem one = generate(InfoItem.class); one.setSubContent(new ArrayList<>()); Utils.defaultVerifier(InfoItem.class) .withPrefabValues(InfoItem.class, one, oneDeep) .verify(); }