@Test
public void setToNearestShouldReturnTheInputWhenValid() {

    DefaultDateRangeLimiter limiter = new DefaultDateRangeLimiter();
    Calendar day = Calendar.getInstance();
    Calendar expected = (Calendar) day.clone();
    Assert.assertEquals(limiter.setToNearestDate(day).getTimeInMillis(), expected.getTimeInMillis());
}