anchor.diff:  
       % Test overriding metric
       ConfigMapExtension5 = #{<<"TS2">> => #{
  -        <<"M2">> => #metric_config{resolution = 1, retention = 500, aggregator = last},
  -        <<"M3">> => #metric_config{resolution = 1, retention = 10000, aggregator = max},
  -        <<"M4">> => #metric_config{resolution = 1, retention = 100, aggregator = min}
  +        <<"M2">> => #metric_config{resolution = 1, retention = 50, aggregator = last},
  +        <<"M3">> => #metric_config{resolution = 1, retention = 1000, aggregator = max},
  +        <<"M4">> => #metric_config{resolution = 1, retention = 10, aggregator = min}
       }},
       Batch9 = extend_collection(Id, ConfigMapExtension5, #{metric_conflict_resulution_strategy => override}, Batch8),
       ExpectedMap5 = ExpectedMap4#{
  
positive.code:     Id = datastore_key:new(),
      TimeSeriesId = <<"TS1">>,
      MetricsConfigs = lists:foldl(fun(N, Acc) ->
          MetricsConfig = #metric_config{resolution = N, retention = 600 div N + 10, aggregator = sum},
          Acc#{<<"M", N>> => MetricsConfig}
      end, #{}, lists:seq(1, 5)),
      ConfigMap = #{TimeSeriesId => MetricsConfigs},
      Batch = init(Id, ConfigMap),
  
      % Prepare time series collection to be used in tests (batch stores collection)
      MeasurementsCount = 1199,
      Measurements = lists:map(fun(I) -> {I, 2 * I} end, lists:seq(0, MeasurementsCount)),
      Batch2 = update_many(Id, Measurements, Batch),
  
  
negative.code:     % Add measurements to overridden metric
      Batch16 = update_many(Id, Measurements, {<<"TS1">>, <<"M0">>}, Batch15),
      ExpectedMap8 = ExpectedMap7#{
          {<<"TS1">>, <<"M0">>} => lists:reverse(lists:map(fun(I) -> {I, 2 * I} end, lists:seq(191, 200)))
      },
      ?assertMatch(?LIST_OK_ANS(ExpectedMap8), ?LIST_ALL(Id, Batch16)),
  
  