EmrUtils { public static boolean isToday(Date date) { return DateUtils.isSameDay(date, new Date()); }  static boolean dateHasTime(Date date); static boolean isToday(Date date); static Integer whoStage(Concept c); static List<String> parseCsv(String csv); static List<Concept> parseConcepts(String csv); static Provider getProvider(User user);  }
@Test public void isToday_shouldReturnTrueOnlyForDatesThatAreToday() { Assert.assertTrue(EmrUtils.isToday(new Date())); Assert.assertFalse(EmrUtils.isToday(TestUtils.date(2012, 1, 1))); }