anchor.diff:      NormalizedMetrics2 = mzb_script_metrics:normalize([[{"foo", "counter"}]]),
       ?assertEqual([
           {group, "Default", [
  -            {graph, #{metrics => [{"foo", counter, #{}}]}}
  +            {graph, #{metrics => [{"foo", counter, #{visibility => true}}]}}
           ]}], NormalizedMetrics2).
   
   normalizetion_negative_test() ->
  
positive.code:     NormalizedMetrics = mzb_script_metrics:normalize(UserMetrics),
      ?assertEqual([
          {group, "Default", [
              {graph, #{metrics => [{"counter", counter, #{}}]}},
              {graph, #{metrics => [{"counter1", counter, #{}},
                                    {"counter2", counter, #{}}]}},
              {graph, #{units => "foo", metrics => [{"bar", counter, #{}}]}}
           ]},
          {group, "Publishers", [
              {graph, #{units   => "Num. of publishers",
                        metrics => [{"publish", counter, #{realtime => true}}]}},
  
              {graph, #{title   => "Publisher latencies",
                        metrics => [{"publish.latency", histogram, #{}}]}}
          ]},
          {group, "Subscribers", [
              {graph, #{metrics => [{"sub", counter, #{}}]}}
          ]}
      ], NormalizedMetrics),
  
  
negative.code: normalization_bc_test() ->
      ?assertEqual(
         [{group, "Default", [
              {graph, #{metrics => [ {"counter", counter, #{visibility => true}} ]} }]
         }],
         mzb_script_metrics:normalize([{"counter", counter}])),
  
      ?assertEqual(
         [{group, "Default", [
              {graph, #{metrics => [
                          {"counter1", counter, #{visibility => true}},
                          {"counter2", counter, #{visibility => true}}]}
              }]
         }],
         mzb_script_metrics:normalize([[{"counter1", counter},
                                        {"counter2", counter}]])).
  
  graphite_visibility_metric_test() ->
      ?assertEqual([
          #{ name => "Default",
             graphs => [#{metrics => [#{name => "counter", visibility => true}] },
                        #{metrics => [#{name => "counter.rps", visibility => true}],
                          units => "rps" }]}],
          build_graphite([{"counter", counter}])),
      ?assertEqual([
          #{ name => "Default",
             graphs => [#{metrics => [#{name => "counter", rps_visibility => false, visibility => true}] },
                        #{metrics => [#{name => "counter.rps", visibility => false}],
                          units => "rps" }]}],
          build_graphite([{"counter", counter, #{rps_visibility => false}}])),
      ?assertEqual([
          #{ name => "Default",
             graphs => [#{metrics => [#{name => "counter", rps_visibility => true, visibility => false}] },
                        #{metrics => [#{name => "counter.rps", visibility => true}],
                          units => "rps" }]}],
          build_graphite([{"counter", counter, #{visibility => false, rps_visibility => true}}])).
  
  graphite_one_metric_test() ->
      ?assertEqual([
          #{ name => "Default",
             graphs => [#{metrics => [#{name => "counter", visibility => true}] },
                        #{metrics => [#{name => "counter.rps", visibility => true}],
                          units => "rps" }]}],
          build_graphite([{"counter", counter}])).
  
  