PredicateFieldValue extends FieldValue { @Override public void deserialize(Field field, FieldReader reader) { reader.read(field, this); } 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 requireThatDeserializeCallsBackToReader() { Field field = Mockito.mock(Field.class); FieldReader reader = Mockito.mock(FieldReader.class); PredicateFieldValue value = new PredicateFieldValue(SimplePredicates.newPredicate()); value.deserialize(field, reader); Mockito.verify(reader).read(field, value); }