Criterion { public ComparatorType getComparator() { return comparator; } Criterion(final String key); String getPojoProperty(); SortingType getSortingType(); Criterion setSortingType(final SortingType sortingType); ComparatorType getComparator(); Criterion setComparator(final ComparatorType comparator); Object getValue(); Criterion setValue(final Object value); @Override String toString();  }
@Test public void testGetComparator() { final ComparatorType expected = ComparatorType.GE; criterion.setComparator(expected); assertEquals(expected, criterion.getComparator()); }