t = PackageHeaderHelper.parseHeader(h);
assertEquals(1, t.imports.size());
Import i = (Import) t.imports.get(0);
assertEquals("foo.bar.Baz", i.type);
t.globals.add(new Global("foo.Bar", "xs"));
t.globals.add(new Global("whee.wah", "tt"));
h = PackageHeaderHelper.renderTypes(t);
assertEquals("import foo.bar.Baz\nglobal foo.Bar xs\nglobal whee.wah tt", h.trim());
}