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