Criterion { public SortingType getSortingType() { return sortingType; } 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 testGetSortingType() { final SortingType expected = SortingType.ASCENDING; criterion.setSortingType(expected); assertEquals(expected, criterion.getSortingType()); }