@Test
public void testAll() throws Exception {

	MockTaskManager analyzer = new MockTaskManager();
	Date start = new SimpleDateFormat("yyyy-MM-dd HH:mm").parse("2013-04-23 00:00");
	Date end = new SimpleDateFormat("yyyy-MM-dd HH:mm").parse("2013-06-23 00:00");
	long dateLong = start.getTime();
	for (; dateLong < end.getTime(); dateLong = dateLong + HOUR) {
		Date date = new Date(dateLong);
		analyzer.createTask(date, "cat", "trasnaction", TaskProlicy.ALL);
	}
	Map<Integer, Set<String>> result = analyzer.getResults();
	Assert.assertEquals(2, result.get(TaskManager.REPORT_MONTH).size());
	Assert.assertEquals(9, result.get(TaskManager.REPORT_WEEK).size());
	Assert.assertEquals(61, result.get(TaskManager.REPORT_DAILY).size());
	Assert.assertEquals(61 * 24, result.get(TaskManager.REPORT_HOUR).size());
}