@Test
public void testWithMultipeFillRangeOffsetPositive() {

    Transform fillTransform = new FillTransform();
    Map<Long, Double> datapoints = new HashMap<Long, Double>();
    datapoints.put(1000L, 1.0);
    datapoints.put(3000L, 3.0);
    datapoints.put(6000L, 6.0);
    Metric metric = new Metric(TEST_SCOPE, TEST_METRIC);
    metric.setDatapoints(datapoints);
    List<Metric> metrics = new ArrayList<Metric>();
    metrics.add(metric);
    List<String> constants = new ArrayList<String>();
    constants.add("100s");
    constants.add("1s");
    constants.add("100.0");
    constants.add(System.currentTimeMillis() + "");
    constants.add("false");
    Map<Long, Double> expected = new HashMap<Long, Double>();
    expected.put(1000L, 1.0);
    expected.put(3000L, 3.0);
    expected.put(6000L, 6.0);
    List<Metric> result = fillTransform.transform(null, metrics, constants);
    assertEquals(result.get(0).getDatapoints().size(), 3);
    assertEquals(expected, result.get(0).getDatapoints());
}