mockAuthorizerControl = MockControl.createControl(Authorizer.class);
mockAuthorizer = (Authorizer)mockAuthorizerControl.getMock();
SystemAuthorizer.set(mockAuthorizer);
domainObject = new DomainObject() {
};
adapter = new RepositorySecurityAdapter(DomainObject.class, mockObjectRepository);
}