@Override
    public Destination addDestination(ConnectionContext context, ActiveMQDestination destination, boolean create) throws Exception {

        DestinationAction action = new DestinationAction(context, destination, "create");
        assertAuthorized(action);

        return super.addDestination(context, destination, create);
    }
@Test(expected=UnauthorizedException.class)
    public void testAddDestinationNotAuthorized() throws Exception {
        String name = "myTopic";
        ActiveMQDestination dest = new ActiveMQTopic(name);

        Subject subject = new PermsSubject();
        ConnectionContext context = createContext(subject);

        filter.addDestination(context, dest, true);
    }