anchor.diff:         N == stop_services;
          N == stop ->
       ok;
  +
   end_per_testcase(Name, Config) ->
       CRef = ?util:read_priv(Config, Name),
       ok = diameter:remove_transport(?CLIENT, CRef).
  
positive.code: %% to both this and the common application. Share a common service just
  %% to simplify config, and because we can.
  add_listeners(Config) ->
      Acct = listen(?SERVER,
                    [{capabilities, [{'Origin-Host', ?HOST("acct-srv")},
                                     {'Auth-Application-Id', []}]},
                     {applications, [accounting]},
                     {capabilities_cb, [fun server_capx/3, acct]}]),
      Base = listen(?SERVER,
                    [{capabilities, [{'Origin-Host', ?HOST("base-srv")}]},
                     {capabilities_cb, [fun server_capx/3, base]}]),
      ?util:write_priv(Config, ?MODULE, {Base, Acct}). %% lref/2 reads
  
  remove_listeners(_Config) ->
  
negative.code:     client_closed(Config, "acct-srv", fun no_common_application/1, 5010).
  
  no_common_application(Config) ->
      [Common, _Acct] = apps(Config),
      connect(Config, acct, [{capabilities, [{'Acct-Application-Id', []}]},
                             {applications, [Common]}]).
  
  %% ====================
  %% Ask the base server to speak accounting with an unknown security
  