QuickAddTokenSelect extends QuickAddEntityField<ID, T, Collection<T>> implements Refreshable { @Override public void setValue(Collection<T> value) { if (tokenSelect != null) { if (value == null) { value = Collections.emptyList(); } tokenSelect.setValue(Sets.newHashSet(value)); } } @SafeVarargs  QuickAddTokenSelect(EntityModel<T> entityModel, AttributeModel attributeModel, BaseService<ID, T> service,
			SerializablePredicate<T> filter, boolean search, SortOrder<?>... sortOrder); @Override void clear(); @Override void clearAdditionalFilter(); EntityTokenSelect<ID, T> getTokenSelect(); @Override Collection<T> getValue(); @Override void refresh(); @Override void refresh(SerializablePredicate<T> filter); @Override void setAdditionalFilter(SerializablePredicate<T> additionalFilter); @Override void setErrorMessage(String errorMessage); @Override void setInvalid(boolean invalid); @Override void setPlaceholder(String placeholder); @Override void setValue(Collection<T> value);  }
@Test public void testSetValue() { EntityModel<TestEntity> em = factory.getModel(TestEntity.class); AttributeModel am = em.getAttributeModel("testDomain"); QuickAddTokenSelect<Integer, TestEntity> select = new QuickAddTokenSelect<>(em, am, service, null, false); select.initContent(); select.setValue(null); assertEquals(Collections.emptySet(), select.getValue()); }