### Question:
ExtractOptionsPane extends HBox implements TaskParametersBuildStep<ExtractParametersBuilder>, RestorableView, ResettableView { @Override public void saveStateTo(Map<String, String> data) { data.put("pages", defaultString(field.getText())); } 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 saveState() { clickOn("#extractRanges").write("30-100").push(KeyCode.ENTER); Map<String, String> data = new HashMap<>(); victim.saveStateTo(data); assertEquals("30-100", data.get("pages")); }