### Question:
StatisticsSetImplementation implements StatisticsSet { public synchronized void reset() { if (!m_zero) { Arrays.fill(m_longData, 0); Arrays.fill(m_doubleData, 0); Arrays.fill(m_transientLongData, 0); m_zero = true; m_composite = false; } } StatisticsSetImplementation(StatisticsIndexMap statisticsIndexMap);   StatisticsSetImplementation(StatisticsIndexMap statisticsIndexMap,
                              ObjectInput in, Serialiser serialiser); synchronized void reset(); synchronized StatisticsSet snapshot(); synchronized long getValue(LongIndex index); synchronized double getValue(DoubleIndex index); synchronized void setValue(LongIndex index, long value); synchronized void setValue(DoubleIndex index, double value); synchronized void addValue(LongIndex index, long value); synchronized void addValue(DoubleIndex index, double value); synchronized void addSample(LongSampleIndex index, long value); synchronized void addSample(DoubleSampleIndex index, double value); synchronized void reset(LongSampleIndex index); synchronized void reset(DoubleSampleIndex index); long getSum(LongSampleIndex index); double getSum(DoubleSampleIndex index); long getCount(SampleIndex index); double getVariance(SampleIndex index); synchronized void add(ImmutableStatisticsSet operand); synchronized boolean isZero(); synchronized boolean isComposite(); synchronized void setIsComposite(); synchronized boolean equals(Object o); int hashCode(); synchronized String toString();  }### Answer:
@Test public void testReset() throws Exception { final StatisticsSetImplementation statistics0 = new StatisticsSetImplementation(m_indexMap); assertTrue(statistics0.isZero()); statistics0.reset(); assertTrue(statistics0.isZero()); statistics0.setValue(m_longIndex2, 700); statistics0.setValue(m_transientLongIndex, 123); statistics0.setValue(m_doubleIndex2, -0.9999); statistics0.setIsComposite(); assertEquals(700, statistics0.getValue(m_longIndex2)); assertEquals(123, statistics0.getValue(m_transientLongIndex)); assertDoublesEqual(-0.9999d, statistics0.getValue(m_doubleIndex2)); assertFalse(statistics0.isZero()); assertTrue(statistics0.isComposite()); statistics0.reset(); assertEquals(0, statistics0.getValue(m_longIndex2)); assertEquals(0, statistics0.getValue(m_transientLongIndex)); assertDoublesEqual(0d, statistics0.getValue(m_doubleIndex2)); assertTrue(statistics0.isZero()); assertFalse(statistics0.isComposite()); }