### Question:
PricingTierDAO extends DefaultDAOBase<Integer, PricingTier> { public boolean existAnyOtherWithTier(final PricingTier pt1, final Tier tier, final PricingTemplate pricingTemplate) { return existsAnyOtherByCriterions(pt1, sameTier(tier), samePricing(pricingTemplate)); } 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 existAnyOtherWithTier() { PricingTier pt1 = eg().createUniqueInstance(); PricingTier pt2 = eg().createUniqueInstance(); ds().persistAll(pt1.getTier().getDatacenter(), pt1.getTier(), pt1.getPricingTemplate().getCurrency(), pt1.getPricingTemplate(), pt1, pt2.getTier().getDatacenter(), pt2.getTier(), pt2.getPricingTemplate().getCurrency(), pt2.getPricingTemplate(), pt2); PricingTierDAO dao = createDaoForRollbackTransaction(); assertFalse(dao.existAnyOtherWithTier(pt1, pt1.getTier(), pt1.getPricingTemplate())); assertFalse(dao.existAnyOtherWithTier(pt1, pt1.getTier(), pt2.getPricingTemplate())); }