public static void main(String[] args) {
junit.textui.TestRunner.run(suite());
}
public static AuthorizationMap createAuthorizationMap() {
DestinationMap readAccess = new DefaultAuthorizationMap();
readAccess.put(new ActiveMQQueue(">"), ADMINS);
readAccess.put(new ActiveMQQueue("USERS.>"), USERS);
readAccess.put(new ActiveMQQueue("GUEST.>"), GUESTS);
readAccess.put(new ActiveMQTopic(">"), ADMINS);
readAccess.put(new ActiveMQTopic("USERS.>"), USERS);
readAccess.put(new ActiveMQTopic("GUEST.>"), GUESTS);
DestinationMap writeAccess = new DefaultAuthorizationMap();
writeAccess.put(new ActiveMQQueue(">"), ADMINS);
writeAccess.put(new ActiveMQQueue("USERS.>"), USERS);
writeAccess.put(new ActiveMQQueue("GUEST.>"), USERS);
writeAccess.put(new ActiveMQQueue("GUEST.>"), GUESTS);
writeAccess.put(new ActiveMQTopic(">"), ADMINS);
writeAccess.put(new ActiveMQTopic("USERS.>"), USERS);
writeAccess.put(new ActiveMQTopic("GUEST.>"), USERS);
writeAccess.put(new ActiveMQTopic("GUEST.>"), GUESTS);
readAccess.put(new ActiveMQTopic("ActiveMQ.Advisory.>"), GUESTS);
readAccess.put(new ActiveMQTopic("ActiveMQ.Advisory.>"), USERS);
writeAccess.put(new ActiveMQTopic("ActiveMQ.Advisory.>"), GUESTS);
writeAccess.put(new ActiveMQTopic("ActiveMQ.Advisory.>"), USERS);
DestinationMap adminAccess = new DefaultAuthorizationMap();
adminAccess.put(new ActiveMQTopic(">"), ADMINS);
adminAccess.put(new ActiveMQTopic(">"), USERS);
adminAccess.put(new ActiveMQTopic(">"), GUESTS);
adminAccess.put(new ActiveMQQueue(">"), ADMINS);
adminAccess.put(new ActiveMQQueue(">"), USERS);
adminAccess.put(new ActiveMQQueue(">"), GUESTS);
return new SimpleAuthorizationMap(writeAccess, readAccess, adminAccess);
}