DaySelectionModel extends AbstractDateSelectionModel { @Override public Date getNormalizedDate(Date date) { Contract.asNotNull(date, "date must not be null"); return startOfDay(date); } DaySelectionModel();  DaySelectionModel(Locale locale); @Override SelectionMode getSelectionMode(); @Override void setSelectionMode(final SelectionMode selectionMode); @Override void addSelectionInterval(Date startDate, Date endDate); @Override void setSelectionInterval(Date startDate, Date endDate); @Override void removeSelectionInterval(Date startDate, Date endDate); @Override void clearSelection(); @Override SortedSet<Date> getSelection(); @Override Date getFirstSelectionDate(); @Override Date getLastSelectionDate(); @Override boolean isSelected(Date date); @Override boolean isSelectionEmpty(); @Override SortedSet<Date> getUnselectableDates(); @Override void setUnselectableDates(SortedSet<Date> unselectables); @Override boolean isUnselectableDate(Date date); @Override Date getNormalizedDate(Date date);  }
@Test public void testNormalizedDateStartOfDay() { assertEquals(startOfDay(today), model.getNormalizedDate(today)); assertNotSame(startOfDay(today), model.getNormalizedDate(today)); }