@Test
public void newRangeQuery() {

    String promql = "sum_over_time(jvm.gc.young.count{app=\"lookout-gateway\"}[60s])";
    Query query = engine.newRangeQuery(promql, Instant.parse("2019-05-29T10:29:30Z"),
        Instant.parse("2019-05-29T10:32:30Z"), Duration.ofSeconds(60));
    Statement statement = query.getStmt();
    Assert.assertNotNull(statement);
    Assert.assertTrue(statement instanceof EvalStmt);
    EvalStmt evalStmt = (EvalStmt) statement;
    Assert.assertEquals(60, evalStmt.getInterval().getSeconds());
}