filters.get(0).setType("number");
assertEquals("No text ranged query", "SELECT e FROM Classification e WHERE name >= :_min_name AND name <= :name", managerImpl.getQuery(Classification.class, filters));
filters.get(0).setMin(null);
filters.get(0).setMinValue(null);
assertEquals("No text query", "SELECT e FROM Classification e WHERE name = :name", managerImpl.getQuery(Classification.class, filters));
filters.add(new Filter());
filters.get(1).setPath("number");
filters.get(1).setPathValue("sample");
filters.get(1).setType("text");
assertEquals("Two filter query", "SELECT e FROM Classification e WHERE name = :name AND LOWER(number) LIKE :number", managerImpl.getQuery(Classification.class, filters));
filters.get(1).setMin("_min_number");