SampleCollector { StatArchiveHandler getStatArchiveHandler() { synchronized (this.sampleHandlers) { return this.statArchiveHandler; } } SampleCollector(StatisticsSampler sampler); @SuppressWarnings(value = "ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD", justification = "There is never more than one SampleCollector instance.") void initialize(final StatArchiveHandlerConfig config, final long nanosTimeStamp,
      final RollingFileHandler rollingFileHandler); boolean isInitialized(); void addSampleHandler(SampleHandler handler); void removeSampleHandler(SampleHandler handler); boolean containsSampleHandler(SampleHandler handler); void sample(long nanosTimeStamp); void close(); void changeArchive(File newFile, long nanosTimeStamp); @Override String toString();  }
@Test public void testGetStatArchiveHandler() { StatArchiveHandler handler = this.sampleCollector.getStatArchiveHandler(); assertNotNull(handler); }