void () { JBUIScale.setUserScaleFactor((float)1); String key = "JBValue.int"; String absentKey = "JBValue.absent"; UIManager.put(key, 2); JBValue value1 = JBUI.uiIntValue(key, 1); JBValue value2 = JBUI.uiIntValue(absentKey, 1); JBUIScale.setUserScaleFactor((float)2); assertEquals(JBUIScale.scale(2), value1.get()); assertEquals(JBUIScale.scale(1), value2.get()); UIManager.put(key, 3); assertEquals(JBUIScale.scale(3), value1.get()); UIManager.put(key, null); }