### Question:
LuceneSerializer { protected Query gt(Operation<?> operation, QueryMetadata metadata) { verifyArguments(operation); Path<?> path = getPath(operation.getArg(0)); return range( path, toField(path), operation.getArg(1), null, false, false, metadata); } LuceneSerializer(boolean lowerCase, boolean splitTerms);  LuceneSerializer(boolean lowerCase, boolean splitTerms, Locale sortLocale); Query toQuery(Expression<?> expr, QueryMetadata metadata); Sort toSort(List<? extends OrderSpecifier<?>> orderBys); static final LuceneSerializer DEFAULT; }### Answer:
@Test public void gt() throws Exception { testQuery(rating.gt("Bad"), "rating:{bad TO *}", 1); }
@Test public void gt_numeric_integer() throws Exception { testQuery(year.gt(1989), "year:{1989 TO *}", 1); }
@Test public void gt_numeric_double() throws Exception { testQuery(gross.gt(100.00), "gross:{100.0 TO *}", 1); }
@Test public void gt_not_in_range_because_equal() throws Exception { testQuery(rating.gt("Good"), "rating:{good TO *}", 0); }
@Test public void gt_numeric_integer_not_in_range_because_equal() throws Exception { testQuery(year.gt(1990), "year:{1990 TO *}", 0); }
@Test public void gt_numeric_double_not_in_range_because_equal() throws Exception { testQuery(gross.gt(900.00), "gross:{900.0 TO *}", 0); }