AuthTimeDateConverter { public static Date authTimeToDate(Integer authTime) { if (null != authTime) { return new Date(authTime.longValue() * 1000l); } return null; }  static Date authTimeToDate(Integer authTime); static Long dateToAuthTime(Date date);  }
@Test public void authTimeToDate_whenNull() { Date date = AuthTimeDateConverter.authTimeToDate(null); assertNull(date); }
@Test public void authTimeToDate_whenNotNull() { Date date = AuthTimeDateConverter.authTimeToDate(1); assertEquals(new Date(1000l), date); }