EntityComboBox extends ComboBox<T> implements Refreshable, Cascadable<T> { public SelectMode getSelectMode() { return selectMode; } EntityComboBox(EntityModel<T> targetEntityModel, AttributeModel attributeModel, BaseService<ID, T> service,
			SelectMode mode, SerializablePredicate<T> filter, ListDataProvider<T> sharedProvider, List<T> items,
			SortOrder<?>... sortOrders); @SafeVarargs  EntityComboBox(EntityModel<T> targetEntityModel, AttributeModel attributeModel, BaseService<ID, T> service,
			SerializablePredicate<T> filter, ListDataProvider<T> sharedProvider, SortOrder<?>... sortOrders); @SafeVarargs  EntityComboBox(EntityModel<T> targetEntityModel, AttributeModel attributeModel, BaseService<ID, T> service,
			SortOrder<?>... sortOrder);  EntityComboBox(EntityModel<T> targetEntityModel, AttributeModel attributeModel, List<T> items); @SuppressWarnings("unchecked") void addEntity(T entity); @Override void clearAdditionalFilter(); @Override SerializablePredicate<T> getAdditionalFilter(); AttributeModel getAttributeModel(); @SuppressWarnings("unchecked") int getDataProviderSize(); SerializablePredicate<T> getFilter(); @SuppressWarnings("unchecked") T getFirstItem(); SelectMode getSelectMode(); SortOrder<?>[] getSortOrder(); @SuppressWarnings("unchecked") @Override void refresh(); void refresh(SerializablePredicate<T> filter); @Override void setAdditionalFilter(SerializablePredicate<T> additionalFilter); void setFilter(SerializablePredicate<T> filter); void setSelectMode(SelectMode selectMode);  }
@Test public void testFixed() { EntityComboBox<Integer, TestEntity> select = new EntityComboBox<>(factory.getModel(TestEntity.class), null, List.of(new TestEntity())); assertEquals(EntityComboBox.SelectMode.FIXED, select.getSelectMode()); verifyNoInteractions(service); }