@Test
@Ignore
public void testFindByOffice() {
final int agentFromKievCount = 1;
final Passport firstAgentId = new Passport("АВ", "468454");
final Account firstAgent = new Account(new Employee(firstAgentId, "Иванов", "Иван"));
final Set<UserRoles> firstAgentUserRoles = new TreeSet<UserRoles>();
firstAgentUserRoles.add(UserRoles.ROLE_AGENT);
firstAgent.setAssociatedRoles(firstAgentUserRoles);
userDAO.persist(firstAgent);
final Office office = new Office("Kiev");
userDAO.persist(office);
firstAgent.getEmployee().setOffice(office);
final Passport secondAgentId = new Passport("АВ", "468454");
final Account secondAgent = new Account(new Employee(secondAgentId, "Иванов", "Иван"));
final List<UserRoles> secondAgentUserRoles = new ArrayList<UserRoles>();
secondAgentUserRoles.add(UserRoles.ROLE_AGENT);
secondAgent.setAssociatedRoles(firstAgentUserRoles);
userDAO.persist(secondAgent);
final List<Employee> foundAgents = agentDAO.findAgentsByFLPandOffice(UserSearchCriteria.createCriteria().setOffice("ie"));
assertNotNull(foundAgents);