ExpressionAggregationScriptFactory implements AggregationScript.Factory { @Override public boolean isResultDeterministic() { return true; } ExpressionAggregationScriptFactory(Expression expression); @Override boolean isResultDeterministic(); @Override AggregationScript.LeafFactory newFactory(Map<String, Object> params, SearchLookup lookup);  }
@Test void should_return_deterministic_result() { assertTrue(factory.isResultDeterministic()); }