anchor.diff:  	Accept = {"accept", "application/json"},
   	Request = {CollectionUrl, [Accept, auth_header()], ContentType, RequestBody},
   	{ok, {{_, 201, _}, _, _}} = httpc:request(post, Request, [], []),
  -	SD = erlang:system_time(?MILLISECOND),
  -	ED = erlang:system_time(?MILLISECOND) + rand:uniform(10000000000),
  -	Status = created,
  -	Name = "test_notification2",
  -	Pla = #resource{name = Name, start_date = SD,
  -			end_date = ED, state = Status},
  -	{ok, #resource{}} = ocs:add_pla(Pla),
  +	TariffResource = #resource{name = "Example",
  +			start_date = erlang:system_time(?MILLISECOND),
  +			end_date = erlang:system_time(?MILLISECOND) + rand:uniform(10000000000),
  +			state = "created", specification = #specification_ref{id = "4",
  +			href = "/resourceCatalogManagement/v3/resourceSpecification/4",
  +			name = "Example spec", version = "1.0"}},
  +	{ok, #resource{id = Id}} = ocs:add_resource(TariffResource),
   	receive
   		Receive1 ->
  -			{struct, PlaEvent1} = mochijson:decode(Receive1),
  -			{_, "PlaCreationNotification"}
  -					= lists:keyfind("eventType", 1, PlaEvent1)
  -	end,
  -	ok = ocs:delete_pla(Name),
  +			{struct, ResEvent1} = mochijson:decode(Receive1),
  +			{_, "ResourceCreationNotification"}
  +					= lists:keyfind("eventType", 1, ResEvent1)
  +	end,
  +	ok = ocs:delete_resource(Id),
   	receive
   		Receive2 ->
  -			{struct, PlaEvent2} = mochijson:decode(Receive2),
  -			{_, "PlaRemoveNotification"}
  -					= lists:keyfind("eventType", 1, PlaEvent2),
  -			{_, {struct, PlaList}} = lists:keyfind("event", 1, PlaEvent2),
  -			{_, Name} = lists:keyfind("id", 1, PlaList)
  +			{struct, ResEvent2} = mochijson:decode(Receive2),
  +			{_, "ResourceRemoveNotification"}
  +					= lists:keyfind("eventType", 1, ResEvent2),
  +			{_, {struct, ResList}} = lists:keyfind("event", 1, ResEvent2),
  +			{_, Id} = lists:keyfind("id", 1, ResList)
   	end.
   
   query_pla_notification() ->
  
positive.code: 		TestCase == query_offer_notification;
  		TestCase == notify_insert_gtt; TestCase == notify_delete_gtt;
  		TestCase == query_gtt_notification;
  		TestCase == notify_add_resource; TestCase == notify_delete_pla;
  		TestCase == query_pla_notification;
  		TestCase == notify_diameter_acct_log ->
  	true = register(TestCase, self()),
  
negative.code: 	post_hub_inventory, delete_hub_inventory, get_inventory_hubs,
  	get_inventory_hub,
  	notify_insert_gtt, notify_delete_gtt, query_gtt_notification,
  	notify_add_resource, notify_delete_resource, query_pla_notification,
  	post_hub_usage, get_usage_hubs, get_usage_hub, delete_hub_usage,
  	notify_diameter_acct_log, get_resource, get_resources,
  	post_resource, delete_resource, update_resource, oauth_authentication].
  