### Question:
DataElementsExportDialog extends MnemonicFileChooser { protected ExportOptionsView getExportOptions() { return myOptionsUI; } DataElementsExportDialog(PreferencesRegistry prefsRegistry, FileFilter fileFilter, ExportOptionsModel model); void close();  }### Answer:
@Test public void test() { ExportOptionsModel model = new ExportOptionsModel(); MimeTypeFileFilter fileFilter = new MimeTypeFileFilter(MimeType.KML); DataElementsExportDialog exportDialog = new DataElementsExportDialog(null, fileFilter, model); ExportOptionsView optionsView = exportDialog.getExportOptions(); assertFalse(model.isAddWkt()); optionsView.getAddWKT().setSelected(true); assertEquals(fileFilter, exportDialog.getChoosableFileFilters()[1]); assertEquals(fileFilter, exportDialog.getFileFilter()); assertTrue(model.isAddWkt()); }