IdClassExampleEmployee emp3 = new IdClassExampleEmployee();
emp3.setEmpId(1L);
emp3.setDepartment(dep2);
emp3 = employeeRepositoryWithIdClass.save(emp3);
QIdClassExampleEmployee emp = QIdClassExampleEmployee.idClassExampleEmployee;
List<IdClassExampleEmployee> result = employeeRepositoryWithIdClass.findAll(
emp.department.departmentId.eq(dep2.getDepartmentId()), emp.empId.asc());
assertThat(result, is(notNullValue()));
assertThat(result, hasSize(2));