public void testCanReadNumeric() throws Exception {
Metric metric = writeMetric("long_metric", 74L);
AstyanaxReader reader = AstyanaxReader.getInstance();
final Locator locator = metric.getLocator();
MetricData res = reader.getDatapointsForRange(locator, new Range(metric.getCollectionTime() - 100000,
metric.getCollectionTime() + 100000), Granularity.FULL);
int numPoints = res.getData().getPoints().size();
Assert.assertTrue(numPoints > 0);
// Test that the RangeBuilder is end-inclusive on the timestamp.
res = reader.getDatapointsForRange(locator, new Range(metric.getCollectionTime() - 100000,
metric.getCollectionTime()), Granularity.FULL);
Assert.assertEquals(numPoints, res.getData().getPoints().size());
}