### Question:
UniqueValuesAddGUI extends CancellableDialogAdapter { public UniqueValuesAddGUI(Component owner, final UniqueValuesRulesListInterface<VALUETYPE> rulesList) { super(owner); this.rulesList = rulesList; initialize(); String title = ASUtil.R("UniqueValuesRuleList.AddAllValues.SearchingMsg"); final AtlasStatusDialog statusDialog = new AtlasStatusDialog(owner, title, title); AtlasSwingWorker<Set<VALUETYPE>> findUniques = new AtlasSwingWorker<Set<VALUETYPE>>(statusDialog) { @Override protected Set<VALUETYPE> doInBackground() throws Exception { return rulesList.getAllUniqueValuesThatAreNotYetIncluded(); } }; try { Set<VALUETYPE> uniqueValues = findUniques.executeModal(); if (uniqueValues.size() == 0) AVSwingUtil.showMessageDialog(UniqueValuesAddGUI.this, ASUtil.R("UniqueValues.NothingToAdd")); DefaultListModel defaultListModel = new DefaultListModel(); for (VALUETYPE uv : uniqueValues) { defaultListModel.addElement(uv); } getJListValues().setModel(defaultListModel); SwingUtil.setRelativeFramePosition(UniqueValuesAddGUI.this, owner, SwingUtil.BOUNDS_OUTER, SwingUtil.NORTHEAST); } catch (CancellationException e) { dispose(); return; } catch (Exception e) { ExceptionDialog.show(e); dispose(); return; } } UniqueValuesAddGUI(Component owner, final UniqueValuesRulesListInterface<VALUETYPE> rulesList); @Override void cancel(); @Override boolean okClose();  }### Answer:
@Test public void testUniqueValuesAddGUI() throws Throwable { final UniqueValuesRuleList rl = new RuleListFactory( GTTestingUtil.TestDatasetsVector.kreise.getStyledFS()) .createUniqueValuesRulesList(true); if (TestingUtil.INTERACTIVE) { UniqueValuesAddGUI dialog = new UniqueValuesAddGUI(null, rl); TestingUtil.testGui(dialog, 1); } }