void () { ApplicationConfiguration configuration = new ApplicationConfiguration(null, getProject()); configuration.setMainClassName("com.comp.AClass"); configuration.setGeneratedName(); checkSuggestedName("AClass.main()", configuration); configuration.setName("Other name"); configuration.setNameChangedByUser(true); checkSuggestedName("Other name", configuration); configuration.setName("1234567890123456789012345 other long name"); checkSuggestedName("12345678901234567890...", configuration); configuration.setMainClassName("com.comp.A12345678901234567890123LongName"); configuration.setGeneratedName(); checkSuggestedName("A1234567890123....main()", configuration); }