Criterion { public Object getValue() { return value; } 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 testGetValue() { final Object expected = new Object(); criterion.setValue(expected); assertEquals(expected, criterion.getValue()); }