@Test
public void getDetailStatisticsBinaryDouble(){

	Row[] rows =
		new Row[] {
			Row.of(1.0, "{\"1.00\": 0.9, \"0.00\": 0.1}"),
			Row.of(1.00, "{\"1.0\": 0.8, \"0.00\": 0.2}"),
			Row.of(1.0, "{\"1.00\": 0.7, \"0.000\": 0.3}"),
			Row.of(0.0, "{\"1.0\": 0.75, \"0.0\": 0.25}"),
			Row.of(null, "{\"1.0\": 0.75, \"0.0\": 0.25}"),
			Row.of(0.00, "{\"1.0\": 0.6, \"0.00\": 0.4}")
		};
	BaseMetricsSummary baseMetric = getDetailStatistics(Arrays.asList(rows), null, true, Types.DOUBLE);
	assertBinaryMetrics(baseMetric);
	Map<Object, Integer> map = new HashMap<>();
	map.put(0.0, 1);
	map.put(1.0, 0);
	baseMetric = getDetailStatistics(Arrays.asList(rows), true,  Tuple2.of(map, new Object[]{1.0, 0.0}), Types.DOUBLE);
	assertBinaryMetrics(baseMetric);
	baseMetric = getDetailStatistics(Arrays.asList(rows), "0.000", true, Types.DOUBLE);
	Assert.assertTrue(baseMetric instanceof BinaryMetricsSummary);
	BinaryMetricsSummary metrics = (BinaryMetricsSummary) baseMetric;
	Assert.assertArrayEquals(new Object[] {0.0, 1.0}, metrics.labels);
}