// now reload into a new context
tlContext = Context.newTopLevelContext();
tlContext.getNamespaceRegistry().createNamespace(new TestPackage());
Iterable<NamedValue> namedValues = LazyLoadFrame.load(null, null);
NamedValue namedValue = namedValues.iterator().next();
assertThat(namedValue.getName(),equalTo("f"));
Closure f = (Closure) namedValue.getValue().force(tlContext);
assertThat(f.getEnclosingEnvironment(), equalTo(tlContext.getNamespaceRegistry().getNamespace("testns").getNamespaceEnvironment()));
}