### Question:
LicenseDAO extends DefaultDAOBase<Integer, License> { public boolean existsAnyOtherWithData(License license, String data) { return this.existsAnyOtherByCriterions(license, equalsData(data)); } LicenseDAO();  LicenseDAO(EntityManager entityManager); boolean existsAnyWithData(String data); boolean existsAnyOtherWithData(License license, String data);  }### Answer:
@Test public void test_existsAnyOtherWithData() { License license1 = createUniqueEntity(); License license2 = createUniqueEntity(); license1.setData("first license"); license2.setData("second license"); ds().persistAll(license1, license2); LicenseDAO dao = createDaoForRollbackTransaction(); License license = dao.findById(license1.getId()); assertFalse(dao.existsAnyOtherWithData(license, "UNEXISTING_NAME")); assertFalse(dao.existsAnyOtherWithData(license, "first license")); assertTrue(dao.existsAnyOtherWithData(license, "second license")); }