@Test
public void calculatesAStdDevOfZeroForAnEmptySnapshot() throws Exception {

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