public void testDate2String() {
		Calendar calendar = Calendar.getInstance();
		calendar.set(2012, Calendar.SEPTEMBER, 22, 9, 18, 1);
		String date = DateUtils.date2String(calendar.getTime());
		assertEquals("2012-09-22 09:18:01", date);

		date = DateUtils.date2String(calendar.getTime(), "yyyy-MM-dd");
		assertEquals("2012-09-22", date);
	}