PredicateFieldValue extends FieldValue { @Override public Object getWrappedValue() { return predicate; } PredicateFieldValue();  PredicateFieldValue(Predicate predicate);  PredicateFieldValue(String predicateString); Predicate getPredicate(); PredicateFieldValue setPredicate(Predicate predicate); @Override DataType getDataType(); @Override void printXml(XmlStream xml); @Override void clear(); @Override void assign(Object o); @Override void serialize(Field field, FieldWriter writer); @Override void deserialize(Field field, FieldReader reader); @Override Object getWrappedValue(); @Override PredicateFieldValue clone(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static PrimitiveDataType.Factory getFactory();  }
@Test public void requireThatWrappedValueIsPredicate() { Predicate predicate = SimplePredicates.newPredicate(); PredicateFieldValue value = new PredicateFieldValue(predicate); assertSame(predicate, value.getWrappedValue()); }