### Question:
JarArchive implements Archive { public Iterator<Entry> iterator() { return new JarIterator(); } JarArchive(ClassLoader loader, URL url); URL getUrl(); InputStream getBytecode(String className); Class<?> loadClass(String className); Iterator<Entry> iterator();  }### Answer:
@Test public void testIterator() throws Exception { List<String> actual = new ArrayList<String>(); for (Archive.Entry entry : archive) { actual.add(entry.getName()); } assertFalse(0 == actual.size()); for (Class clazz : classes) { assertTrue(clazz.getName(), actual.contains(clazz.getName())); } assertEquals(classes.length, actual.size()); }