Binder implements Serializable { public void removeBean() { setBean(null); } protected  Binder(PropertySet<BEAN> propertySet);  Binder(Class<BEAN> beanType);  Binder();  Binder(Class<BEAN> beanType, boolean scanNestedDefinitions); static Binder<BEAN> withPropertySet(
            PropertySet<BEAN> propertySet); BEAN getBean(); BindingBuilder<BEAN, FIELDVALUE> forField(
            HasValue<?, FIELDVALUE> field); BindingBuilder<BEAN, FIELDVALUE> forMemberField(
            HasValue<?, FIELDVALUE> field); Binding<BEAN, FIELDVALUE> bind(
            HasValue<?, FIELDVALUE> field,
            ValueProvider<BEAN, FIELDVALUE> getter,
            Setter<BEAN, FIELDVALUE> setter); Binding<BEAN, FIELDVALUE> bind(
            HasValue<?, FIELDVALUE> field, String propertyName); void setBean(BEAN bean); void removeBean(); void readBean(BEAN bean); void writeBean(BEAN bean); void writeBeanAsDraft(BEAN bean); void writeBeanAsDraft(BEAN bean, boolean forced); boolean writeBeanIfValid(BEAN bean); Binder<BEAN> withValidator(Validator<? super BEAN> validator); Binder<BEAN> withValidator(SerializablePredicate<BEAN> predicate,
            String message); Binder<BEAN> withValidator(SerializablePredicate<BEAN> predicate,
            ErrorMessageProvider errorMessageProvider); BinderValidationStatus<BEAN> validate(); boolean isValid(); void setStatusLabel(HasText statusLabel); Optional<HasText> getStatusLabel(); void setValidationStatusHandler(
            BinderValidationStatusHandler<BEAN> statusHandler); BinderValidationStatusHandler<BEAN> getValidationStatusHandler(); Registration addStatusChangeListener(StatusChangeListener listener); Registration addValueChangeListener(
            ValueChangeListener<? super ValueChangeEvent<?>> listener); boolean hasChanges(); void setReadOnly(boolean readOnly); void bindInstanceFields(Object objectWithMemberFields); Optional<Binding<BEAN, ?>> getBinding(String propertyName); Stream<HasValue<?, ?>> getFields(); void removeBinding(HasValue<?, ?> field); void removeBinding(Binding<BEAN, ?> binding); void removeBinding(String propertyName); void setValidatorsDisabled(boolean validatorsDisabled); boolean isValidatorsDisabled();  }
@Test public void unbound_changeFieldValue_beanValueNotUpdated() { bindName(); nameField.setValue("Henri"); binder.removeBean(); nameField.setValue("Aleksi"); assertEquals("Henri", item.getFirstName()); }