@SuppressWarnings("deprecation")
	@Test
	public void testCompareDateEndWithMinute() {
		Date date1 = new Date();
		date1.setSeconds(0);

		Date date2 = new Date(date1.getTime());
		date2.setSeconds(10);
		assertTrue(DateUtils.compareDateEndWithMinute(date1, date2));
		assertTrue(DateUtils.compareDateEndWithMinute(date1, date1));

		date2 = new Date(date1.getTime());
		if (date1.getMinutes() > 1) {
			date2.setMinutes(date1.getMinutes() - 1);
		} else {
			date2.setMinutes(date1.getMinutes() + 1);
		}
		assertTrue(!DateUtils.compareDateEndWithMinute(date1, date2));

	}
Test method for {@link DateUtils#ms2Time(long)}.
ngrinder-core/src/test/java/org/ngrinder/common/util/DateUtilsTest.java