void () { PsiClass psiClass = findClass(getModule1(), CLASS_NAME); PsiMethod psiMethod = psiClass.findMethodsByName("main", false)[0]; ApplicationConfiguration configuration = createConfiguration(psiMethod); assertEquals(CLASS_NAME, configuration.getMainClassName()); assertEquals(configuration.suggestedName(), configuration.getName()); assertEquals(SHORT_CLASS_NAME, configuration.getName()); }