### Question:
ValidableTextField extends TextField { public void setEnableInvalidStyle(final boolean active) { validationSupport.validationStateProperty().addListener(o -> { if (active) { if (validationSupport.validationStateProperty().get() == ValidationState.INVALID) { getStyleClass().addAll(Style.INVALID.css()); } else { getStyleClass().removeAll(Style.INVALID.css()); } } }); } ValidableTextField();  ValidableTextField(String text); final ValidationState getValidationState(); final ReadOnlyObjectProperty<ValidationState> validProperty(); void setEnableInvalidStyle(final boolean active); void setErrorMessage(String message); void setOnEnterValidation(final boolean active); void setValidator(Validator<String> validator); void validate();  }### Answer:
@Test public void invalidCssNotApplied() { victim.setEnableInvalidStyle(false); clickOn(victim); push(KeyCode.TAB); verifyThat(victim, (v) -> !v.getStyleClass().containsAll(Arrays.asList(Style.INVALID.css()))); }