void () { PsiField field = myClass.findFieldByName("CHAR_CONST", false); assertNotNull(field); PsiLiteralExpression initializer = (PsiLiteralExpression)field.getInitializer(); assertNotNull(initializer); assertEquals(PsiTypes.charType(), initializer.getType()); assertEquals(new Character('5'), initializer.getValue()); assertEquals("'5'", initializer.getText()); assertEquals(new Character('5'), field.computeConstantValue()); }