### Question:
TextLabelingClassLanguageSelectorDialog extends
		CancellableDialogAdapter { public TextLabelingClassLanguageSelectorDialog(Component parentGui, TextRuleList rulesList) { super(parentGui, ASUtil .R("TextSymbolizerClass.CreateALanguageDefault.DialogTitle")); this.rulesList = rulesList; lcb = new LanguagesComboBox(AtlasStylerVector.getLanguages(), rulesList.getDefaultLanguages()); setContentPane(new JPanel(new MigLayout("wrap 1, w 400"))); getContentPane() .add(new JLabel( ASUtil.R("TextSymbolizerClass.CreateALanguageDefault.Explanation")), ""); getContentPane().add(lcb, "w 300, center"); getContentPane().add(getOkButton(), "split 2, tag ok"); getContentPane().add(getCancelButton(), "tag cancel"); pack(); SwingUtil.setRelativeFramePosition(this, parentGui, 0.5, 0.5); } TextLabelingClassLanguageSelectorDialog(Component parentGui,
			TextRuleList rulesList); @Override boolean close(); @Override void cancel(); String getSelectedLanguage();  }### Answer:
@Test public void testTextLabelingClassLanguageSelectorDialog() throws Throwable { if (!hasGui()) return; TextRuleList textRulesList = new RuleListFactory( GTTestingUtil.TestDatasetsVector.countryShp.getStyledFS()) .createTextRulesList(true); TextLabelingClassLanguageSelectorDialog d = new TextLabelingClassLanguageSelectorDialog( null, textRulesList); d.setVisible(true); d.pack(); TestingUtil.testGui(d, 100); }