@Test void fromDateShouldThrowNPEOnNullInput() { assertThatThrownBy(() -> VacationPatch.builder().fromDate((ValuePatch<ZonedDateTime>) null)).isInstanceOf(NullPointerException.class); }
public static Builder builder() { return new Builder(); }
VacationPatch { public static Builder builder() { return new Builder(); } }
VacationPatch { public static Builder builder() { return new Builder(); } private  VacationPatch(ValuePatch<String> subject, ValuePatch<String> textBody, ValuePatch<String> htmlBody,
                          ValuePatch<ZonedDateTime> toDate, ValuePatch<ZonedDateTime> fromDate, ValuePatch<Boolean> isEnabled); }
VacationPatch { public static Builder builder() { return new Builder(); } private  VacationPatch(ValuePatch<String> subject, ValuePatch<String> textBody, ValuePatch<String> htmlBody,
                          ValuePatch<ZonedDateTime> toDate, ValuePatch<ZonedDateTime> fromDate, ValuePatch<Boolean> isEnabled); static Builder builder(); static Builder builderFrom(Vacation vacation); ValuePatch<String> getSubject(); ValuePatch<String> getTextBody(); ValuePatch<String> getHtmlBody(); ValuePatch<ZonedDateTime> getToDate(); ValuePatch<ZonedDateTime> getFromDate(); ValuePatch<Boolean> getIsEnabled(); Vacation patch(Vacation vacation); boolean isIdentity(); @Override boolean equals(Object o); @Override int hashCode(); }
VacationPatch { public static Builder builder() { return new Builder(); } private  VacationPatch(ValuePatch<String> subject, ValuePatch<String> textBody, ValuePatch<String> htmlBody,
                          ValuePatch<ZonedDateTime> toDate, ValuePatch<ZonedDateTime> fromDate, ValuePatch<Boolean> isEnabled); static Builder builder(); static Builder builderFrom(Vacation vacation); ValuePatch<String> getSubject(); ValuePatch<String> getTextBody(); ValuePatch<String> getHtmlBody(); ValuePatch<ZonedDateTime> getToDate(); ValuePatch<ZonedDateTime> getFromDate(); ValuePatch<Boolean> getIsEnabled(); Vacation patch(Vacation vacation); boolean isIdentity(); @Override boolean equals(Object o); @Override int hashCode();  }