### Question:
CurveNodeDateOrder implements ImmutableBean, Serializable { public static CurveNodeDateOrder of(int minGapInDays, CurveNodeClashAction action) { return new CurveNodeDateOrder(minGapInDays, action); } private  CurveNodeDateOrder(
      int minGapInDays,
      CurveNodeClashAction action); static CurveNodeDateOrder of(int minGapInDays, CurveNodeClashAction action); static CurveNodeDateOrder.Meta meta(); @Override CurveNodeDateOrder.Meta metaBean(); int getMinGapInDays(); CurveNodeClashAction getAction(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final CurveNodeDateOrder DEFAULT; }### Answer:
@Test public void test_of_invalid() { assertThatIllegalArgumentException() .isThrownBy(() -> CurveNodeDateOrder.of(0, CurveNodeClashAction.DROP_THIS)); }
@Test public void coverage() { CurveNodeDateOrder test = CurveNodeDateOrder.of(2, CurveNodeClashAction.DROP_THIS); coverImmutableBean(test); CurveNodeDateOrder test2 = CurveNodeDateOrder.of(3, CurveNodeClashAction.DROP_OTHER); coverBeanEquals(test, test2); }
@Test public void test_serialization() { CurveNodeDateOrder test = CurveNodeDateOrder.of(2, CurveNodeClashAction.DROP_THIS); assertSerialization(test); }