### Question:
PricingTierDAO extends DefaultDAOBase<Integer, PricingTier> { public Collection<PricingTier> findPricingTiers(final PricingTemplate pricing) { Criteria criteria = createCriteria(samePricing(pricing)); return criteria.list(); } PricingTierDAO();  PricingTierDAO(final EntityManager entityManager); Collection<PricingTier> findPricingTiers(final PricingTemplate pricing); Collection<PricingTier> findPricingTiers(final Tier tier); PricingTier findPricingTier(final Tier tier, final PricingTemplate pricing); boolean existAnyOtherWithTier(final PricingTier pt1, final Tier tier,
        final PricingTemplate pricingTemplate);  }### Answer:
@Test public void findPricingTiers() { PricingTier pt1 = eg().createUniqueInstance(); PricingTier pt2 = eg().createUniqueInstance(); ds().persistAll(pt1.getTier().getDatacenter(), pt1.getTier(), pt1.getPricingTemplate().getCurrency(), pt1.getPricingTemplate(), pt2.getTier().getDatacenter(), pt1, pt2.getTier(), pt2.getPricingTemplate().getCurrency(), pt2.getPricingTemplate(), pt2); PricingTierDAO dao = createDaoForRollbackTransaction(); Collection<PricingTier> ptts = dao.findPricingTiers(pt1.getPricingTemplate()); AssertEx.assertSize(ptts, 1); ptts = dao.findPricingTiers(pt2.getPricingTemplate()); AssertEx.assertSize(ptts, 1); }