firstWritableIteration.setStartDate(new Date(DAY));
Iteration secondNonWritableIteration = newIteration(project2);
commitCloseAndOpenSession();
Authorizer authorizer = new AuthorizerImpl();
IterationRepository dao = new IterationRepository(session, authorizer, person.getId());
List list = dao.fetchEditableIterations();
ArrayAssert.assertEquals("iterations returned", new Iteration[] {firstWritableIteration, secondWritableIteration}, list.toArray());
}