void (String text) { myFixture.addClass("package pkg;\n\nclass C1 { public static void main(String... args) { } }"); myFixture.addClass("package pkg;\n\nclass C2 { public static void premain() { } }"); myFixture.addClass("package pkg;\n\nclass C3 { public static void agentmain() { } }"); myFixture.configureByText("MANIFEST.MF", text); myFixture.checkHighlighting(true, false, false); }