@Test
public void calculatesAStdDevOfZeroForASingletonSnapshot() throws Exception {

    final Snapshot singleItemSnapshot = new WeightedSnapshot(
        WeightedArray(new long[]{ 1 }, new double[]{ 1.0 }) );
    assertThat(singleItemSnapshot.getStdDev())
            .isZero();
}