/** * test for max. */ @Test public void max() { DateTimeOption a = new DateTimeOption(); DateTimeOption b = new DateTimeOption(); DateTimeOption c = new DateTimeOption(); a.modify(time(200)); b.modify(time(100)); c.modify(time(300)); a.max(b); assertThat(a.get(), is(time(200))); assertThat(b.get(), is(time(100))); a.max(c); assertThat(a.get(), is(time(300))); assertThat(b.get(), is(time(100))); assertThat(c.get(), is(time(300))); }