@Test
public void calculatesAMeanOfZeroForAnEmptySnapshot() {

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