// Path: src/test/java/com/lmax/angler/monitoring/network/monitor/ResourceUtil.java
// public final class ResourceUtil
// {
//     private ResourceUtil() {}
// 
//     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.ResourceUtil;
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 org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
package com.lmax.angler.monitoring.network.monitor.system.softnet;




public class SoftnetStatsMonitorTest
{
    private final RecordingSoftnetStatsHandler softnetStatsHandler = new RecordingSoftnetStatsHandler();
    private Path inputPath;
    private SoftnetStatsMonitor monitor;

    @Before
    public void before() throws Exception
    {
        inputPath = Files.createTempFile("proc-net-softnet_stat", "txt");
// Path: src/test/java/com/lmax/angler/monitoring/network/monitor/ResourceUtil.java
// public final class ResourceUtil
// {
//     private ResourceUtil() {}
// 
//     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/softnet/SoftnetStatsMonitorTest.java
import com.lmax.angler.monitoring.network.monitor.ResourceUtil;
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 org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

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




public class SoftnetStatsMonitorTest
{
    private final RecordingSoftnetStatsHandler softnetStatsHandler = new RecordingSoftnetStatsHandler();
    private Path inputPath;
    private SoftnetStatsMonitor monitor;

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