### Question:
Filter { public V getValue() { return value != null ? value.cast() : null; } Filter(Field field, Value<V> value);  Filter(Field field, Value<V> value, Operator operator); String getField(); V getValue(); Operator getOperator();  }### Answer:
@Test public void testFilterValue() throws Exception { Mockito.doReturn("value").when(value).cast(); Filter<String> filter = new Filter<String>(field, value); Assert.assertEquals("value", filter.getValue()); }