### Question:
WidgetLayoutDAO { @RequiresSession public List<WidgetLayoutEntity> findBySectionName(String sectionName) { TypedQuery<WidgetLayoutEntity> query = entityManagerProvider.get() .createNamedQuery("WidgetLayoutEntity.findBySectionName", WidgetLayoutEntity.class); query.setParameter("sectionName", sectionName); return daoUtils.selectList(query); }  @RequiresSession WidgetLayoutEntity findById(Long id); @RequiresSession List<WidgetLayoutEntity> findByCluster(long clusterId); @RequiresSession List<WidgetLayoutEntity> findBySectionName(String sectionName); @RequiresSession List<WidgetLayoutEntity> findByName(Long clusterId, String layoutName, String userName); @RequiresSession List<WidgetLayoutEntity> findAll(); @Transactional void create(WidgetLayoutEntity widgetLayoutEntity); @Transactional void createWithFlush(WidgetLayoutEntity widgetLayoutEntity); @Transactional WidgetLayoutEntity merge(WidgetLayoutEntity widgetLayoutEntity); @Transactional WidgetLayoutEntity mergeWithFlush(WidgetLayoutEntity widgetLayoutEntity); @Transactional void remove(WidgetLayoutEntity widgetLayoutEntity); @Transactional void removeByPK(Long id); @Transactional void refresh(WidgetLayoutEntity widgetLayoutEntity);  }### Answer:
@Test public void testFindBySectionName() { createRecords(); Assert.assertEquals(0, widgetLayoutDAO.findBySectionName("non existing").size()); List<WidgetLayoutEntity> widgetLayoutEntityList1 = widgetLayoutDAO.findBySectionName("section0"); List<WidgetLayoutEntity> widgetLayoutEntityList2 = widgetLayoutDAO.findBySectionName("section1"); Assert.assertEquals(1, widgetLayoutEntityList1.size()); Assert.assertEquals(1, widgetLayoutEntityList2.size()); Assert.assertEquals(3, widgetLayoutEntityList1.get(0).getListWidgetLayoutUserWidgetEntity().size()); }