TimeRange range = new TimeRange(7365L, 3777347L);
String actionName = "testExtraMetricsGeneration";
Trace trace = createMockTrace(range, actionName);
Frame root = trace.getRootFrame();
EndPointName ep = EndPointName.valueOf(actionName);
ResourceKey rKey = ep.makeKey();
Collection<MetricsBag> mbList =
((EclipsePersistenceMetricsGenerator) gen).addExtraEndPointMetrics(trace, rKey, Collections.singletonList(root));
assertEquals("Mismatched metrics count", 1, ListUtil.size(mbList));
MetricsBag mb = ListUtil.getFirstMember(mbList);