BrokerServicePermissionFilter extends JsonRpcPermissionsFilterAdapter { @Inject public void register(RequestHandlerManager requestHandlerManager) { requestHandlerManager.registerMethodInvokerFilter( this, BROKER_STATUS_CHANGED_METHOD, BROKER_RESULT_METHOD); }  @Inject void register(RequestHandlerManager requestHandlerManager); @Override void doAccept(String method, Object... params);  }
@Test public void shouldRegisterItself() { permissionFilter.register(requestHandlerManager); requestHandlerManager.registerMethodInvokerFilter( permissionFilter, BROKER_STATUS_CHANGED_METHOD, BROKER_RESULT_METHOD); }