@Test
public void getDetailStatisticsMulti(){

	Row[] rows =
		new Row[] {
			Row.of("prefix0", "{\"prefix0\": 0.3, \"prefix1\": 0.2, \"prefix2\": 0.5}"),
			Row.of("prefix0", "{\"prefix0\": 0.4, \"prefix1\": 0.3, \"prefix2\": 0.3}"),
			Row.of("prefix1", "{\"prefix0\": 0.3, \"prefix1\": 0.4, \"prefix2\": 0.3}"),
			Row.of("prefix2", "{\"prefix0\": 0.5, \"prefix1\": 0.2, \"prefix2\": 0.3}"),
			Row.of("prefix2", "{\"prefix0\": 0.4, \"prefix1\": 0.3, \"prefix2\": 0.3}"),
			Row.of("prefix2", "{\"prefix0\": 0.4, \"prefix1\": 0.1, \"prefix2\": 0.5}"),
			Row.of("prefix2", "{\"prefix0\": 0.6, \"prefix1\": 0.1, \"prefix2\": 0.3}"),
			Row.of("prefix1", "{\"prefix0\": 0.4, \"prefix1\": 0.1, \"prefix2\": 0.5}"),
			Row.of("prefix1", "{\"prefix0\": 0.2, \"prefix1\": 0.5, \"prefix2\": 0.3}"),
			Row.of("prefix1", "{\"prefix0\": 0.2, \"prefix1\": 0.5, \"prefix2\": 0.3}")
		};
	BaseMetricsSummary baseMetric = getDetailStatistics(Arrays.asList(rows), null, false, Types.STRING);
	assertMultiMetrics(baseMetric);
	Map<Object, Integer> map = new HashMap<>();
	map.put("prefix0", 2);
	map.put("prefix1", 1);
	map.put("prefix2", 0);
	baseMetric = getDetailStatistics(Arrays.asList(rows), false, Tuple2.of(map, new Object[]{"prefix2", "prefix1", "prefix0"}), Types.STRING);
	assertMultiMetrics(baseMetric);
}