### Question:
IIRMultichannelSingleFilterForExport extends AbstractMultichannelSingleFilterForExport implements SignalWriterMonitor { @Override public void getSamples(int channel, double[] target, int signalOffset, int count, int arrayOffset) { super.getSamples(channel, target, signalOffset, count, arrayOffset); if (signalOffset + count == this.getSampleCount(channel) && filteringDone) { temporaryFile1.delete(); temporaryFile2.delete(); } } IIRMultichannelSingleFilterForExport(MultichannelSampleSource inputSource, TimeDomainSampleFilter definition, boolean[] filterExclusionArray, boolean filtFiltEnabled, SignalWriterMonitor signalWriterMonitor); @Override void getSamples(int channel, double[] target, int signalOffset, int count, int arrayOffset); @Override void setProcessedSampleCount(int sampleCount); @Override void abort(); @Override boolean isRequestingAbort();  }### Answer:
@Test public void testGetSamples() throws BadFilterParametersException, IOException { TimeDomainSampleFilter timeDomainFilter = new TimeDomainSampleFilter(FilterType.HIGHPASS, ApproximationFunctionType.BUTTERWORTH, new double[] {5.0, 0.0}, new double[] {1.5, 0.0}, 3.0, 10.00); timeDomainFilter.setSamplingFrequency(128.0); double[][] signal = new double[1][]; signal[0] = TestingSignals.SHORT_SIGNAL; DoubleArraySampleSource sampleSource = new DoubleArraySampleSource(signal, 1, signal[0].length); IIRMultichannelSingleFilterForExport filterForExport = new IIRMultichannelSingleFilterForExport(sampleSource, timeDomainFilter, new boolean[] { false}, false, null); double[] exportResults = new double[filterForExport.getSampleCount(0)]; filterForExport.getSamples(0, exportResults, 0, exportResults.length, 0); ChannelSelectorSampleSource channel0SampleSource = new ChannelSelectorSampleSource(sampleSource, 0); OfflineIIRSinglechannelSampleFilter offlineFilter = new OfflineIIRSinglechannelSampleFilter(channel0SampleSource, IIRDesigner.designDigitalFilter(timeDomainFilter)); double[] offlineResults = new double[offlineFilter.getSampleCount()]; offlineFilter.getSamples(offlineResults, 0, offlineResults.length, 0); assertArrayEquals(offlineResults, exportResults, 1e-4); }