### Question:
UsersResourceFacadeImp extends CoreDBServiceFacadeImp<Users, Long> implements UsersResourceFacade { @Override public List<CollectionDTO> findAllCrisisByUserID(Long id) throws PropertyNotSetException { Users u = getById(id); List<CollectionDTO> dtoList = new ArrayList<CollectionDTO>(); if (u != null) { } return dtoList; } protected  UsersResourceFacadeImp(); @Override UsersDTO getUserByName(String name); @Override UsersDTO getUserById(Long id); @Override List<UsersDTO> getAllUsersByName(String name); @Override List<CollectionDTO> findAllCrisisByUserID(Long id); @Override UsersDTO addUser(UsersDTO user); @Override Integer deleteUser(Long id); @Override List<UsersDTO> findByCriteria(String columnName, Object value); @Override List<UsersDTO> getAllUsers();  }### Answer:
@Test public void testFindAllCrisisByUserId() { try { CrisisTypeDTO crisisTypeDTO = crisisTypeResourceFacadeImp.findCrisisTypeByID(1100L); CollectionDTO crisisDTO = new CollectionDTO("testCrisisName", "testCrisisCode", false, false, crisisTypeDTO, user, user); entityManager.getTransaction().begin(); crisis = crisisResourceFacadeImp.addCrisis(crisisDTO); entityManager.getTransaction().commit(); List<CollectionDTO> result = userResourceFacadeImp .findAllCrisisByUserID(user.getUserID()); assertEquals(user.getUserID(), result.get(0).getUsersDTO() .getUserID()); } catch (PropertyNotSetException ex) { logger.error("PropertyNotSetException while fetching all crisis by userId "+ex.getMessage()); fail("testFindAllCrisisByUserID failed"); } }