### Question:
PrefixPane extends HBox implements TaskParametersBuildStep<MultipleOutputTaskParametersBuilder<?>>,
        RestorableView, ResettableView, ModuleOwned { @Override public void saveStateTo(Map<String, String> data) { data.put(defaultString(getId()) + "prefix", defaultString(field.getText())); } PrefixPane(String ownerModule, UserContext userContext); void addMenuItemFor(Prefix... prefixes); void addMenuItemFor(String... prefixes); final String getText(); @Override void resetView(); @Override String getOwnerModule(); @Override void apply(MultipleOutputTaskParametersBuilder<?> builder, Consumer<String> onError); @Override void saveStateTo(Map<String, String> data); @Override void restoreStateFrom(Map<String, String> data);  }### Answer:
@Test public void saveState() { Map<String, String> data = new HashMap<>(); victim.saveStateTo(data); assertEquals("PDFsam_", data.get("victimprefix")); }