EqCriterion extends AbstractCriterion { @Override public String value() { return '(' + attribute + '=' + value + ')'; } EqCriterion(String attribute, Object value); @Override String value();  }
@Test public void testCriterion() throws Exception { EqCriterion criterion = new EqCriterion("a", "b"); assertThat(criterion.value(), equalTo("(a=b)")); assertThat(criterion.filter(), notNullValue()); }