### Question:
AuthorizationFilter extends EnvironmentFilter { @Override public void removeDestinationInfo(ConnectionContext context, DestinationInfo info) throws Exception { DestinationAction action = new DestinationAction(context, info.getDestination(), "remove"); assertAuthorized(action); super.removeDestinationInfo(context, info); } AuthorizationFilter(); ActionPermissionResolver getActionPermissionResolver(); void setActionPermissionResolver(ActionPermissionResolver actionPermissionResolver); @Override void addDestinationInfo(ConnectionContext context, DestinationInfo info); @Override Destination addDestination(ConnectionContext context, ActiveMQDestination destination, boolean create); @Override void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout); @Override void removeDestinationInfo(ConnectionContext context, DestinationInfo info); @Override Subscription addConsumer(ConnectionContext context, ConsumerInfo info); @Override void addProducer(ConnectionContext context, ProducerInfo info); @Override void send(ProducerBrokerExchange exchange, Message message);  }### Answer:
@Test(expected=UnauthorizedException.class) public void testRemoveDestinationInfoNotAuthorized() throws Exception { String name = "myTopic"; ActiveMQDestination dest = new ActiveMQTopic(name); DestinationInfo info = new DestinationInfo(null, DestinationInfo.REMOVE_OPERATION_TYPE, dest); Subject subject = new PermsSubject(); ConnectionContext context = createContext(subject); filter.removeDestinationInfo(context, info); }