PackageHeaderLoader { public Collection<String> getClassNames() { return classNames; } PackageHeaderLoader(Collection<String> imports, List<JarInputStream> jarInputStreams); Collection<String> getClassNames(); Collection<String> getFieldNames(String className); String getFieldType(String className, String fieldName); Collection<String> getMissingClasses();  }
@Test public void testListAddressAndPetImport() throws Exception { PackageHeaderLoader packageHeaderLoader = getPackageHeaderLoader("org.test.Rambo", "org.test.Pet"); Collection<String> classNames = packageHeaderLoader.getClassNames(); assertEquals(2, classNames.size()); assertTrue(classNames.contains("org.test.Rambo")); assertTrue(classNames.contains("org.test.Pet")); }