### Question:
SplitOptionsPane extends VBox implements TaskParametersBuildStep<SplitByOutlineLevelParametersBuilder>, RestorableView, ResettableView { @Override public void restoreStateFrom(Map<String, String> data) { regexpField.setText(Optional.ofNullable(data.get("regexp")).orElse(EMPTY)); levelCombo.restoreStateFrom(data); } SplitOptionsPane(); @Override void resetView(); @Override void apply(SplitByOutlineLevelParametersBuilder builder, Consumer<String> onError); @Override void saveStateTo(Map<String, String> data); @Override void restoreStateFrom(Map<String, String> data);  }### Answer:
@Test public void restoreState() { Map<String, String> data = new HashMap<>(); data.put("regexp", "Chuck"); data.put("levelCombo.selected", "2"); data.put("levelCombo.levels", "2,3,5,6,7,10"); victim.restoreStateFrom(data); TextInputControl field = lookup("#bookmarksRegexp").queryTextInputControl(); assertEquals("Chuck", field.getText()); BookmarksLevelComboBox levelCombo = lookup("#bookmarksLevel").queryAs(BookmarksLevelComboBox.class); assertEquals(6, levelCombo.getItems().size()); assertEquals("2", levelCombo.getSelectionModel().getSelectedItem()); }