void () { MyInspection inspection = new MyInspection(); JComponent component = render(inspection); var textFields = UIUtil.findComponentsOfType(component, JBTextField.class); var checkBox = UIUtil.findComponentOfType(component, JCheckBox.class); var dropDown = UIUtil.findComponentOfType(component, ComboBox.class); assertEquals("7", textFields.get(0).getText()); assertEquals("2.5", textFields.get(1).getText()); assertEquals("default 1", textFields.get(2).getText()); assertEquals("-1", textFields.get(3).getText()); assertFalse(checkBox.isSelected()); assertEquals("o1", ((OptDropdown.Option)dropDown.getSelectedItem()).key()); }