### Question:
EmployeeServiceImpl implements EmployeeService { @Override public List<Employee> listByAge1(Integer age) { CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery<Employee> query = cb.createQuery(Employee.class); Root<Employee> root = query.from(Employee.class); ParameterExpression<Integer> ageParameter = cb.parameter(Integer.class); List<Predicate> predicates = new LinkedList<>(); Join<Employee, EmployeeDetail> join = root.join(Employee_.detail, JoinType.LEFT); predicates.add(cb.gt(join.get(EmployeeDetail_.age), ageParameter)); predicates.add(cb.equal(join.get(EmployeeDetail_.age), ageParameter)); Order order = cb.asc(root.get(Employee_.id)); query.orderBy(order); query.where(cb.or(predicates.toArray(new Predicate[predicates.size()]))); TypedQuery typedQuery = em.createQuery(query); return typedQuery.setParameter(ageParameter, age).getResultList(); }  @Override Page<Employee> pageBySearch(EmployeeSearch search, Pageable pageable); @Override void save(Employee employee); @Override List<Employee> listByAge(Integer age); @Override List<Employee> listByAge1(Integer age); @Override List<Tuple> groupByName(String name); @Override List<EmployeeResult> findEmployee();  }### Answer:
@Test public void testListByAge1() { List<Employee> list = employeeService.listByAge1(24); Assert.assertThat(1L, Matchers.equalTo(list.get(0).getId())); }