}
public void testAnonymousCannotDoAnythingByDefault() {
Properties props = new Properties();
props.setProperty("acl.provider", aclProvider);
AuthorisationProvider auth = AuthorisationProviderFactory
.getAuthorisationProvider(props);
V7File dummyFile = new V7File(null, new BasicDBObject(), null);
assertFalse(auth.authoriseOpen(dummyFile, null));
assertFalse(auth
.authoriseOpen(dummyFile, AuthenticationToken.ANONYMOUS));
assertFalse(auth.authoriseRead(dummyFile, null));
assertFalse(auth
.authoriseRead(dummyFile, AuthenticationToken.ANONYMOUS));
assertFalse(auth.authoriseWrite(dummyFile, null));
assertFalse(auth.authoriseWrite(dummyFile,
AuthenticationToken.ANONYMOUS));
}