### Question:
CurveNodeDate implements ImmutableBean, Serializable { public static CurveNodeDate.Meta meta() { return CurveNodeDate.Meta.INSTANCE; } private  CurveNodeDate(
      CurveNodeDateType type,
      LocalDate date); static CurveNodeDate of(LocalDate date); boolean isEnd(); boolean isLastFixing(); boolean isFixed(); LocalDate getDate(); LocalDate calculate(Supplier<LocalDate> endDateSupplier, Supplier<LocalDate> lastFixingDateSupplier); static CurveNodeDate.Meta meta(); @Override CurveNodeDate.Meta metaBean(); CurveNodeDateType getType(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final CurveNodeDate END; static final CurveNodeDate LAST_FIXING; }### Answer:
@Test public void test_builder_incorrect_no_fixed_date() { assertThatIllegalArgumentException() .isThrownBy(() -> CurveNodeDate.meta().builder() .set(CurveNodeDate.meta().type(), CurveNodeDateType.FIXED) .build()); }
@Test public void test_builder_incorrect_fixed_date() { assertThatIllegalArgumentException() .isThrownBy(() -> CurveNodeDate.meta().builder() .set(CurveNodeDate.meta().type(), CurveNodeDateType.LAST_FIXING) .set(CurveNodeDate.meta().date(), DATE1) .build()); }