* the parent's inheritable ACEs and not injected into the
* ACEs of the child (as they were in the past).
*/
public void testInheritOnlyACEFromParent () throws IOException {
SmbFileDelegate parentFile = createNiceMock(SmbFileDelegate.class);
ACE parentAce1 = createACE("accountants", AclScope.GROUP,
AclAccess.PERMIT, AceType.ALL_INHERIT);
ACE parentAce2 = createACE("inherit-only", AclScope.GROUP,
AclAccess.PERMIT, AceType.INHERIT_ONLY);
ACE[] parentAces = { parentAce1, parentAce2 };
expect(parentFile.getSecurity()).andReturn(parentAces);
expect(parentFile.getURL()).andReturn(new URL("file", "host", "parent"));
expectLastCall().anyTimes();
replay(parentFile);
SmbFileDelegate smbFile = createNiceMock(SmbFileDelegate.class);
ACE fileAce1 = createACE("accountants", AclScope.GROUP,
AclAccess.PERMIT, AceType.INHERITED);
ACE fileAce2 = createACE("inherit-only", AclScope.GROUP,
AclAccess.PERMIT, AceType.INHERITED);
ACE[] fileAces = { fileAce1, fileAce2 };
expect(smbFile.getSecurity()).andReturn(fileAces);
expect(smbFile.getURL()).andReturn(new URL("file", "host", "parent/file"));
expectLastCall().anyTimes();