@Test
	public void testConvertToUserDate() {
		String userLocaleId = "Asia/Seoul";
		TimeZone tz = TimeZone.getTimeZone(userLocaleId);
		Date serverDate = new Date();
		Date userDate = DateUtils.convertToUserDate(userLocaleId, serverDate);
		assertThat((int) (userDate.getTime() - serverDate.getTime()), is(tz.getRawOffset()
						- TimeZone.getDefault().getRawOffset()));

		// convert the server date back to test.
		Date newServerDate = DateUtils.convertToServerDate(userLocaleId, userDate);
		assertThat(serverDate.getTime(), is(newServerDate.getTime()));
	}
Test method for {@link DateUtils#dateToString(java.util.Date)}.
ngrinder-core/src/test/java/org/ngrinder/common/util/DateUtilsTest.java