### Question:
DaoUtil { public static DateTime toDateTime(Timestamp time) { return time == null ? null : new DateTime(time.getTime()); } private  DaoUtil(); static Timestamp toTimestamp(BaseDateTime time); static DateTime toDateTime(Timestamp time); static Integer getInt(ResultSet rs, String columnLabel); static Long getLong(ResultSet rs, String columnLabel);  }### Answer:
@Test public void toDateTimeWorksForNull() { assertThat(DaoUtil.toDateTime(null), is(nullValue())); }