@Test
public void testMetricListWithPercentile() {

    Transform fillCalculateTransform = new FillCalculateTransform();
    Metric metric_1 = new Metric(TEST_SCOPE, TEST_METRIC);
    metric_1.setDatapoints(input);
    List<Metric> metrics = new ArrayList<Metric>();
    metrics.add(metric_1);
    List<String> constants = new ArrayList<>();
    constants.add("p95");
    Map<Long, Double> expected_1 = new HashMap<>();
    expected_1.put(1000L, 10.0);
    expected_1.put(2000L, 10.0);
    expected_1.put(3000L, 10.0);
    expected_1.put(4000L, 10.0);
    expected_1.put(5000L, 10.0);
    expected_1.put(6000L, 10.0);
    expected_1.put(7000L, 10.0);
    expected_1.put(8000L, 10.0);
    expected_1.put(9000L, 10.0);
    expected_1.put(10000L, 10.0);
    List<Metric> result = fillCalculateTransform.transform(null, metrics, constants);
    assertEquals(result.size(), 1);
    assertEquals(result.get(0).getDatapoints().size(), 10);
    assertEquals(expected_1, result.get(0).getDatapoints());
}