@Test
public void testRateWhenOneDPShouldReturnZeroDP() {

	long startTime=1, endTime=10*MINUTE;
	RateTransform rateTransform = new RateTransform();
	List<Metric> metrics = new ArrayList<>();
	Metric actualMetric= new Metric("testScope", "testMetric");
	Map<Long, Double> actualDPs = new HashMap<>();
	actualDPs.put(startTime, 1d);
	actualMetric.setDatapoints(actualDPs);
	metrics.add(actualMetric);
	List<Metric> expectedMetrics = new ArrayList<>();
	Metric expectedMetric= new Metric("testScope", "testMetric");
	expectedMetric.setDatapoints(null);
	expectedMetrics.add(expectedMetric);
	QueryContext queryContext = _getQueryContext(startTime, endTime);
	List<String> constants = Arrays.asList("1m","FALSE","FALSE");
	List<Metric> actualMetrics1 = rateTransform.transform(queryContext, metrics, constants);
	constants = Arrays.asList("1m","TRUE","TRUE");
	List<Metric> actualMetrics2 = rateTransform.transform(queryContext, metrics, constants);
	assertEquals(expectedMetrics.get(0).getDatapoints(), actualMetrics1.get(0).getDatapoints());
	assertEquals(expectedMetrics.get(0).getDatapoints(), actualMetrics2.get(0).getDatapoints());
}