// Path: src/main/java/com/lmax/angler/monitoring/network/monitor/system/snmp/udp/SnmpUdpStatisticsHandler.java
// @FunctionalInterface
// public interface SnmpUdpStatisticsHandler
// {
//     /**
//      * Callback method.
//      * @param inErrors InErrors count
//      * @param receiveBufferErrors RecvbufErrors count
//      * @param inChecksumErrors InCsumErrors count
//      */
//     void onStatisticsUpdated(final long inErrors, final long receiveBufferErrors, final long inChecksumErrors);
// }
// 
// Path: src/test/java/com/lmax/angler/monitoring/network/monitor/ResourceUtil.java
// public static void writeDataFile(final String resourceName, final Path sourcePath) throws IOException, URISyntaxException
// {
//     copy(Paths.get(currentThread().getContextClassLoader().getResource(resourceName).toURI()),
//             new FileOutputStream(sourcePath.toFile(), false));
// }


import com.lmax.angler.monitoring.network.monitor.system.snmp.udp.SnmpUdpStatisticsHandler;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import static com.lmax.angler.monitoring.network.monitor.ResourceUtil.writeDataFile;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
package com.lmax.angler.monitoring.network.monitor.system.snmp;




public class SystemNetworkManagementMonitorTest
{
    private final RecordingSnmpUdpStatisticsHandler statsHandler = new RecordingSnmpUdpStatisticsHandler();
    private Path inputPath;
    private SystemNetworkManagementMonitor monitor;

    @Before
    public void before() throws Exception
    {
        inputPath = Files.createTempFile("proc-net-snmp", "txt");
// Path: src/main/java/com/lmax/angler/monitoring/network/monitor/system/snmp/udp/SnmpUdpStatisticsHandler.java
// @FunctionalInterface
// public interface SnmpUdpStatisticsHandler
// {
//     /**
//      * Callback method.
//      * @param inErrors InErrors count
//      * @param receiveBufferErrors RecvbufErrors count
//      * @param inChecksumErrors InCsumErrors count
//      */
//     void onStatisticsUpdated(final long inErrors, final long receiveBufferErrors, final long inChecksumErrors);
// }
// 
// Path: src/test/java/com/lmax/angler/monitoring/network/monitor/ResourceUtil.java
// public static void writeDataFile(final String resourceName, final Path sourcePath) throws IOException, URISyntaxException
// {
//     copy(Paths.get(currentThread().getContextClassLoader().getResource(resourceName).toURI()),
//             new FileOutputStream(sourcePath.toFile(), false));
// }


// Path: src/test/java/com/lmax/angler/monitoring/network/monitor/system/snmp/SystemNetworkManagementMonitorTest.java
import com.lmax.angler.monitoring.network.monitor.system.snmp.udp.SnmpUdpStatisticsHandler;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import static com.lmax.angler.monitoring.network.monitor.ResourceUtil.writeDataFile;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

package com.lmax.angler.monitoring.network.monitor.system.snmp;




public class SystemNetworkManagementMonitorTest
{
    private final RecordingSnmpUdpStatisticsHandler statsHandler = new RecordingSnmpUdpStatisticsHandler();
    private Path inputPath;
    private SystemNetworkManagementMonitor monitor;

    @Before
    public void before() throws Exception
    {
        inputPath = Files.createTempFile("proc-net-snmp", "txt");
        writeDataFile("proc_net_snmp_sample.txt", inputPath);