@Test
public void calculatesAStdDevOfZeroForASingletonSnapshot() {

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