### Question:
RoleDAO extends DefaultDAOBase<Integer, Role> { public Collection<Role> find(final Enterprise enterprise, final String filter, final String orderBy, final boolean desc) { return find(enterprise, filter, orderBy, desc, 0, 25); } RoleDAO();  RoleDAO(final EntityManager entityManager); static Criterion sameEnterpriseOrNull(final Enterprise enterprise); static Criterion sameEnterprise(final Enterprise enterprise); static Criterion genericRole(); Collection<Role> find(final Enterprise enterprise, final String filter,
        final String orderBy, final boolean desc); Collection<Role> find(final Enterprise enterprise, final String filter,
        final String orderBy, final boolean desc, final Integer offset, final Integer numResults); Collection<Role> find(final Enterprise enterprise, final String filter,
        final String orderBy, final boolean desc, final Integer offset, final Integer numResults,
        final boolean discardNullEnterprises); Collection<Role> findExactly(final Enterprise enterprise, final String filter,
        final String orderBy, final boolean desc, final Integer offset, final Integer numResults,
        final boolean discardNullEnterprises); List<Privilege> findPrivilegesByIdRole(final Integer idRole);  }### Answer:
@Test public void findRoles() { Role role1 = eg().createInstance(); Enterprise enterprise = this.enterpriseGenerator.createUniqueInstance(); Role role2 = eg().createInstance(enterprise); ds().persistAll(role1, enterprise, role2); RoleDAO dao = createDaoForRollbackTransaction(); Collection<Role> roles = dao.find(enterprise, null, null, false, 0, 25); AssertEx.assertSize(roles, 2); roles = dao.find(null, null, null, false, 0, 25); AssertEx.assertSize(roles, 1); }