FilterGroup { public void reset() { if (field instanceof HasValue) { ((HasValue<?, ?>) field).clear(); if (field instanceof HasValidation) { ((HasValidation) field).setErrorMessage(null); } } if (auxField != null) { if (auxField instanceof HasValue) { ((HasValue<?, ?>) auxField).clear(); if (auxField instanceof HasValidation) { ((HasValidation) auxField).setErrorMessage(null); } } } } FilterGroup(AttributeModel attributeModel, FilterType filterType, Component filterComponent, Component field,
            Component auxField); void addListener(FilterListener<T> listener); Component getAuxField(); Component getField(); Component getFilterComponent(); List<FilterListener<T>> getListeners(); String getPropertyId(); void reset(); void setEnabled(boolean enabled); void setListeners(List<FilterListener<T>> listeners); void valueChange(Component field, Object value);  }
@Test public void testReset() { TextField tf = (TextField) constructField("name"); FilterGroup<TestEntity> fg = new FilterGroup<>(model.getAttributeModel("name"), FilterType.LIKE, null, tf, null); tf.setValue("bob"); fg.reset(); assertEquals("", tf.getValue()); }