### Question:
LicenseDAO extends DefaultDAOBase<Integer, License> { public boolean existsAnyWithData(String data) { return existsAnyByCriterions(equalsData(data)); } LicenseDAO();  LicenseDAO(EntityManager entityManager); boolean existsAnyWithData(String data); boolean existsAnyOtherWithData(License license, String data);  }### Answer:
@Test public void test_existsAnyWithData() { License license = createUniqueEntity(); license.setData("license data"); ds().persistAll(license); LicenseDAO dao = createDaoForRollbackTransaction(); assertTrue(dao.existsAnyWithData("license data")); assertFalse(dao.existsAnyWithData("UNEXISTING_DATA")); }