@Test
	public void testConvertToServerDateSameLocal() {
		String userLocaleId = "Asia/Shanghai";
		TimeZone tz = TimeZone.getTimeZone(userLocaleId);

		Date userDate = new Date();
		Date serverDate = DateUtils.convertToServerDate(userLocaleId, userDate);
		// userDate - serverDate should be equal as offset
		assertThat((int) (userDate.getTime() - serverDate.getTime()), is(tz.getRawOffset()
						- TimeZone.getDefault().getRawOffset()));
	}
Test method for {@link DateUtils#dateToString(java.util.Date)}.
ngrinder-core/src/test/java/org/ngrinder/common/util/DateUtilsTest.java