n = ((Node) superuser.getItem(path)).addNode(nodeName2, testNodeType);
} catch (RepositoryException e) {
throw new NotExecutableException();
}
AccessControlPolicyIterator it = acMgr.getApplicablePolicies(n.getPath());
while (it.hasNext()) {
AccessControlPolicy policy = it.nextAccessControlPolicy();
acMgr.setPolicy(n.getPath(), policy);
AccessControlPolicy[] plcs = acMgr.getPolicies(n.getPath());
assertNotNull("After calling setPolicy the manager must return a non-null policy array for the new Node.", plcs);
assertTrue("After calling setPolicy the manager must return a policy array with a length greater than zero for the new Node.", plcs.length > 0);