Collection<SynergyTask> entries = consumer.getTasks();
assertEquals( "Wrong number of tasks returned", 2, entries.size() );
Iterator<SynergyTask> i = entries.iterator();
SynergyTask task = (SynergyTask) i.next();
assertEquals( 52, task.getNumber() );
assertEquals( "ccm_root", task.getUsername() );
assertEquals( "Modification du pom (url scm)", task.getComment() );
Calendar cal = Calendar.getInstance();
cal.clear();
cal.set( 2006, Calendar.OCTOBER, 6, 10, 3, 59 );
assertEquals( cal.getTime(), task.getModifiedTime() );
task = (SynergyTask) i.next();
assertEquals( 53, task.getNumber() );
assertEquals( "ccm_root", task.getUsername() );
assertEquals( "Inverser l'odre purpose/release", task.getComment() );
cal.clear();
cal.set( 2006, Calendar.OCTOBER, 6, 10, 47, 13 );
assertEquals( cal.getTime(), task.getModifiedTime() );
}