Event implements Parcelable, Comparable<Event> { public LocalDateTime getLocalStart() { return DateUtils.toLocalDateTime(getStart()); } Event(); protected  Event(Parcel in); @Override void writeToParcel(Parcel dest, int flags); @Override int describeContents(); LocalDateTime getLocalStart(); @Nullable LocalDateTime getLocalEnd(); String getTitle(); OffsetDateTime getStart(); @Nullable OffsetDateTime getEnd(); String getLocation(); String getAddress(); boolean hasPreciseLocation(); boolean hasLocation(); String getDescription(); String getUrl(); boolean hasUrl(); String getAssociation(); String getIdentifier(); @Override int compareTo(Event o); @Override boolean equals(Object o); @Override int hashCode(); static final Creator<Event> CREATOR; }
@Test public void shouldReturnLocal_whenStart() { OffsetDateTime offsetDateTime = Utils.generate(OffsetDateTime.class); Event event = Utils.generate(Event.class, "start"); Utils.setField(event, "start", offsetDateTime); LocalDateTime localDateTime = event.getLocalStart(); assertEquals(DateUtils.toLocalDateTime(offsetDateTime), localDateTime); }