### Question:
SystemPropertyDAO extends DefaultDAOBase<Integer, SystemProperty> { public boolean existsAnyOtherWithName(SystemProperty systemProperty, String name) { return this.existsAnyOtherByCriterions(systemProperty, equalsName(name)); } SystemPropertyDAO();  SystemPropertyDAO(EntityManager entityManager); boolean existsAnyWithName(String name); boolean existsAnyOtherWithName(SystemProperty systemProperty, String name); SystemProperty findByName(String name); List<SystemProperty> findByComponent(String component);  }### Answer:
@Test public void test_existsAnyOtherWithName() { SystemProperty property = createUniqueEntity(); SystemProperty property2 = createUniqueEntity(); property.setName("A name"); property2.setName("Second name"); ds().persistAll(property, property2); SystemPropertyDAO dao = createDaoForRollbackTransaction(); property = dao.findById(property.getId()); assertFalse(dao.existsAnyOtherWithName(property, "UNEXISTING_NAME")); assertFalse(dao.existsAnyOtherWithName(property, "A name")); assertTrue(dao.existsAnyOtherWithName(property, "Second name")); }