### Question:
AuthorizationFilter extends EnvironmentFilter { public void setActionPermissionResolver(ActionPermissionResolver actionPermissionResolver) { this.actionPermissionResolver = actionPermissionResolver; } 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 public void testSetActionPermissionResolver() { ActionPermissionResolver resolver = new DestinationActionPermissionResolver(); filter.setActionPermissionResolver(resolver); assertSame(resolver, filter.getActionPermissionResolver()); }