void () { MyCustomOptionsInspection inspection = new MyCustomOptionsInspection(); OptPane pane = inspection.getOptionsPane(); OptControl check1 = pane.findControl("check1"); OptControl check2 = pane.findControl("check2"); assertEquals(Boolean.FALSE, check1.getValue(inspection)); check1.setValue(inspection, true); assertEquals(Boolean.TRUE, check1.getValue(inspection)); assertEquals(Boolean.FALSE, check2.getValue(inspection)); check2.setValue(inspection, true); assertEquals(Boolean.TRUE, check2.getValue(inspection)); assertEquals(Map.of("check1", true, "check2", true), inspection.options); }