GeohashBinningStrategy implements AggregationBinningStrategy<T> { public int getPrecision() { return precision; } GeohashBinningStrategy(int precision); int getPrecision(); @Override String[] binEntry(T entry); @Override byte[] toBinary(); @Override void fromBinary(byte[] bytes);  }
@Test public void testPrecisionConstructor() { for (int i = 0; i < 100; i++) { assertThat(new GeohashSimpleFeatureBinningStrategy(i).getPrecision(), is(i)); assertThat(new GeohashCommonIndexedBinningStrategy(i).getPrecision(), is(i)); } }