void () { myFixture.addClass("package a;" + "public class Parent {" + " public static final int FOOBAR = 1;" + " public static class FooBar {}" + "}"); myFixture.addClass("package a;" + "public class FooBar {" + "}"); doTest(""" package b; import a.*; import static a.Parent.*; import static a.Parent.FooBar; class Main { public static void main() { Parent parent = new Parent(); int i = FOOBAR; FooBar foobar = new FooBar(); } }"""); }