assertEquals(2, entries.size());
for (Iterator iter = entries.iterator(); iter.hasNext();) {
PolicyEntry element = (PolicyEntry)iter.next();
if (element.getPermissions()
.contains(new SecurityPermission("ZZZ"))) {
assertTrue(element.impliesCodeSource(new CodeSource(null,
(Certificate[])null)));
assertTrue(element.impliesPrincipals(null));
} else if (element.getPermissions()
.contains(new SecurityPermission("YYY"))) {
assertFalse(element.impliesCodeSource(null));