public void testFindByProjectPersistanceId() {
Set<Iteration> set = new HashSet<Iteration>();
Iteration iteration1 = new IterationImpl();
Project basicProject1 = new ProjectImpl();
iteration1.setProject(basicProject1);
iteration1.setStart(new Date());
Iteration iteration2 = new IterationImpl();
Project basicProject2 = new ProjectImpl();
iteration2.setProject(basicProject2);
iteration2.setStart(new Date());
iteration2.setEnd(new Date());
set.add(iteration1);
set.add(iteration2);
// set expectation
EasyMock.expect(mockIterationMapper.findByProjectPersistanceId(1)).andReturn(set);
Project basicProjectToReturn = new ProjectImpl();
EasyMock.expect(mockBasicProjectProxyUtil.injectDependencies(basicProject2)).andReturn(basicProjectToReturn);
EasyMock.expect(mockBasicProjectProxyUtil.injectDependencies(basicProject1)).andReturn(basicProjectToReturn);
// check order
mocksControl.checkOrder(true);