}
@Test (groups="reads", dependsOnGroups="createsObjectInDB")
public void testQBE() {
Employee employee = new Employee();
employee.setActive(true);
employee.setAge(40);
employee.setNumberOfPromotions(1);
employee.setFirstName("Rick");
employee.setLastName("Rick");
employee.setTasks(null);
Example ex = like(employee).excludeProperty("lastName").excludeProperty("tasks");
System.out.println(ex);
// List<Employee> employees =
employeeDao.find(ex);
// AssertJUnit.assertTrue(employees.size() > 0);
employee = new Employee();
employee.setFirstName("Ric%");
employee.setLastName("High%");
employee.setAge(40);
employee.setActive(true);
employee.setNumberOfPromotions(1);
Department department = new Department();
department.setName("Eng%");
employee.setDepartment(department);
employeeDao.find(like(employee)
.excludeProperty("employees").excludeProperty("tasks"));
// AssertJUnit.assertTrue(employees.size() > 0);
}