### Question:
PdfDestinationPane extends DestinationPane implements ModuleOwned, RestorableView, ResettableView,
        TaskParametersBuildStep<AbstractPdfOutputParametersBuilder<? extends AbstractPdfOutputParameters>> { @Override public void restoreStateFrom(Map<String, String> data) { version.resetView(); compress.setSelected(Boolean.valueOf(data.get("compress"))); overwrite().setSelected(Boolean.valueOf(data.get("overwrite"))); discardBookmarks.ifPresent(d -> { d.setSelected(Boolean.valueOf(data.get("discardBookmarks"))); }); ofNullable(data.get("version")).map(PdfVersion::valueOf).map(DefaultPdfVersionComboItem::new) .ifPresent(v -> this.version.getSelectionModel().select(v)); } PdfDestinationPane(BrowsableField destination, String ownerModule, UserContext userContext,
            DestinationPanelFields... optionalFields);  PdfDestinationPane(BrowsableField destination, String ownerModule, UserContext userContext,
            boolean expandAdvanced, DestinationPanelFields... optionalFields); void enableSameAsSourceItem(); @Override @EventStation String getOwnerModule(); @EventListener void setDestination(SetDestinationRequest event); @Override void resetView(); @Override void apply(AbstractPdfOutputParametersBuilder<? extends AbstractPdfOutputParameters> 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("overwrite", Boolean.FALSE.toString()); data.put("compress", Boolean.TRUE.toString()); data.put("version", PdfVersion.VERSION_1_4.toString()); victim.restoreStateFrom(data); assertFalse(victim.overwrite().isSelected()); }