verify(_accessControl, times(2)).authorise(eq(Operation.UNBIND), eq(ObjectType.EXCHANGE), eq(properties));
}
public void testAuthoriseConfiguringBroker()
{
OperationLoggingDetails properties = new OperationLoggingDetails("create virtualhost 'test'");
configureAccessPlugin(Result.ALLOWED);
assertTrue(_securityManager.authoriseConfiguringBroker("test", VirtualHost.class, Operation.CREATE));
verify(_accessControl).authorise(eq(Operation.CONFIGURE), eq(ObjectType.BROKER), eq(properties));