@Test
public void expectNoOverflowForLowWeights() throws Exception {

    final Snapshot scatteredSnapshot = new WeightedSnapshot(
        WeightedArray(
                new long[]{ 1, 2, 3 },
                new double[]{ Double.MIN_VALUE, Double.MIN_VALUE, Double.MIN_VALUE }
        )
    );
    assertThat(scatteredSnapshot.getMean())
            .isEqualTo(2);
}