// configure the topic to prevent "def" from reading
config = "<security><role name=\"def\" read=\"false\" write=\"false\" create=\"false\"/></security>";
on = new ObjectName("jboss.messaging.destination:service=Topic,name=Accounting");
ServerManagement.setAttribute(on, "SecurityConfig", config);
Queue queue = (Queue)ic.lookup("/queue/Accounting");
Topic topic = (Topic)ic.lookup("/topic/Accounting");
conn = cf.createConnection("john", "needle");
assertTrue(canReadDestination(conn, queue));