### Question:
ExtractOptionsPane extends HBox implements TaskParametersBuildStep<ExtractParametersBuilder>, RestorableView, ResettableView { @Override public void restoreStateFrom(Map<String, String> data) { field.setText(Optional.ofNullable(data.get("pages")).orElse(EMPTY)); } ExtractOptionsPane(); @Override void apply(ExtractParametersBuilder builder, Consumer<String> onError); @Override void saveStateTo(Map<String, String> data); @Override void restoreStateFrom(Map<String, String> data); @Override void resetView();  }### Answer:
@Test public void restoreState() { Map<String, String> data = new HashMap<>(); data.put("pages", "100"); WaitForAsyncUtils.waitForAsyncFx(2000, () -> victim.restoreStateFrom(data)); ValidableTextField field = lookup("#extractRanges").queryAs(ValidableTextField.class); assertEquals("100", field.getText()); }