### Question:
SystemPropertyDAO extends DefaultDAOBase<Integer, SystemProperty> { public boolean existsAnyWithName(String name) { return existsAnyByCriterions(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_existsAnyWithName() { SystemProperty systemProperty = createUniqueEntity(); systemProperty.setName("A name"); ds().persistAll(systemProperty); SystemPropertyDAO dao = createDaoForRollbackTransaction(); assertTrue(dao.existsAnyWithName("A name")); assertFalse(dao.existsAnyWithName("UNEXISTING_NAME")); }