Date date2 = calendar.getTime();
calendar.set(Calendar.MILLISECOND, calendar.get(Calendar.MILLISECOND) + 1);
Date date3 = calendar.getTime();
DomainObject mockDomainObject1 = EasyMock.createMock(DomainObject.class);
DomainObject mockDomainObject2 = EasyMock.createMock(DomainObject.class);
DomainObject mockDomainObject3 = EasyMock.createMock(DomainObject.class);
temporalDomainMap.putVersion(date1, mockDomainObject1);
temporalDomainMap.putVersion(date2, mockDomainObject2);
temporalDomainMap.putVersion(date3, mockDomainObject3);