anchor.diff:  	mod_esi:deliver(SessionID, "status: 201 Created\r\n\r\n"),
   	notify_accumulated_balance ! Input.
   
  --spec notifyaccumulatedthreshold(SessionID :: term(), Env :: list(),
  +-spec queryaccumulatedbalancenotification(SessionID :: term(), Env :: list(),
   		Input :: string()) -> any().
  -%% @doc Notification callback for notify_accumulated_threshold test case.
  -notifyaccumulatedthreshold(SessionID, _Env, Input) ->
  +%% @doc Notification callback for query_accumulated_balance_notification
  +%% test case.
  +queryaccumulatedbalancenotification(SessionID, _Env, Input) ->
   	mod_esi:deliver(SessionID, "status: 201 Created\r\n\r\n"),
  -	notify_accumulated_threshold ! Input.
  +	query_accumulated_balance_notification ! Input.
   
   -spec notifyproductcharge(SessionID :: term(), Env :: list(),
   		Input :: string()) -> any().
  
positive.code: 	ignore_delete_product, query_product, filter_product,
  	post_hub_balance, delete_hub_balance, notify_create_bucket,
  	notify_delete_bucket, notify_rating_deleted_bucket,
  	notify_accumulated_balance, notify_accumulated_threshold,
  	query_bucket_notification,
  	post_hub_product, delete_hub_product, notify_create_product,
  	notify_delete_product, query_product_notification, post_hub_service,
  
negative.code: 	#acc_balance{total_balance = BytesTotalAmount}
  			= lists:keyfind(octets, #acc_balance.units, AccBalanceRecords).
  
  query_accumulated_balance_notification() ->
  	[{userdata, [{doc, "Query accumulated balance notification"}]}].
  
  query_accumulated_balance_notification(Config) ->
  	PackagePrice = 5000000,
  	PackageSize = 100000000,
  	P1 = #price{name = ocs:generate_identity(), type = usage, units = octets,
  			size = PackageSize, amount = PackagePrice},
  	OfferId = add_offer([P1], 4),
  	{ok, #product{id = ProdRef}} = ocs:add_product(OfferId, [], []),
  	RA1 = 50000000,
  	_BId1 = add_bucket(ProdRef, cents, RA1),
  	RA2 = 100000000,
  	BId2 = add_bucket(ProdRef, cents, RA2),
  	HostUrl = ?config(host_url, Config),
  	CollectionUrl = HostUrl ++ ?PathBalanceHub,
  	ListenerPort = ?config(listener_port, Config),
  	ListenerServer = "http://localhost:" ++ integer_to_list(ListenerPort),
  	Callback = ListenerServer ++ "/listener/"
  			++ atom_to_list(?MODULE) ++ "/queryaccumulatedbalancenotification",
  	RequestBody = "{\n"
  			++ "\t\"callback\": \"" ++ Callback ++ "\",\n"
  			++ "}\n",
  	ContentType = "application/json",
  	Accept = {"accept", "application/json"},
  	Request1 = {CollectionUrl, [Accept, auth_header()], ContentType, RequestBody},
  	{ok, {{_, 201, _}, _, _}} = httpc:request(post, Request1, [], []),
  	Threshold = 100,
  	Query = "?totalBalance.units=cents&totalBalance.amount.lt="
  			++ integer_to_list(Threshold),
  