@BeforeClass
 public static void before() throws IOException {
   forceDefaultCodec();
   SearchContext.setCurrent(
       ChildrenConstantScoreQueryTests.createSearchContext("test", "parent", "child"));
 }