@Test
public void expectNoOverflowForLowWeights() {

    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);
}