void () { MyDelegateOptionInspection inspection = new MyDelegateOptionInspection(); OptPane pane = inspection.getOptionsPane(); pane.findControl("box").setValue(inspection, true); pane.findControl("value").setValue(inspection, 5); pane.findControl("valueDouble").setValue(inspection, 11); assertEquals(11, pane.findControl("valueDouble").getValue(inspection)); pane.findControl("adv.c1").setValue(inspection, true); assertEquals(true, pane.findControl("adv.c1").getValue(inspection)); pane.findControl("adv.c2").setValue(inspection, false); assertEquals(5, inspection.value); assertEquals(22, inspection.valueDouble); assertTrue(inspection.box); assertTrue(inspection.options.get("c1")); assertFalse(inspection.options.get("c2")); assertNull(inspection.options.get("c3")); }