ElasticsearchAggregationResponseParser { @VisibleForTesting protected static Object handleNanValue(double value) { return Double.isNaN(value) ? null : value; }  static List<Map<String, Object>> parse(Aggregations aggregations);  }
@Test void nan_value_should_return_null() { assertNull(ElasticsearchAggregationResponseParser.handleNanValue(Double.NaN)); }