// Path: src/test/java/net/ozwolf/mockserver/raml/util/Fixtures.java
// public static File zipFixture(String path) throws ZipException {
//     File source = new File(path);
//     File target = new File("target/archives/zip-archive-test.zip");
//     if (target.exists() && !target.delete())
//         throw new RuntimeException("Unable to delete old zip file target");
// 
//     if (!target.getParentFile().exists() && !target.getParentFile().mkdirs())
//         throw new RuntimeException("Unable to create directories for zip file target");
// 
//     ZipFile zipFile = new ZipFile(target);
//     ZipParameters parameters = new ZipParameters();
//     parameters.setIncludeRootFolder(false);
//     zipFile.createZipFileFromFolder(source, parameters, false, -1);
// 
//     return target;
// }


import net.lingala.zip4j.exception.ZipException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.io.File;
import static net.ozwolf.mockserver.raml.util.Fixtures.zipFixture;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;
package net.ozwolf.mockserver.raml.handlers;




public class ZipArchiveHandlerTest {
    @Rule
    public ExpectedException exception = ExpectedException.none();

    @Test
    public void shouldTakeZipFileAndUnpack() throws ZipException {
// Path: src/test/java/net/ozwolf/mockserver/raml/util/Fixtures.java
// public static File zipFixture(String path) throws ZipException {
//     File source = new File(path);
//     File target = new File("target/archives/zip-archive-test.zip");
//     if (target.exists() && !target.delete())
//         throw new RuntimeException("Unable to delete old zip file target");
// 
//     if (!target.getParentFile().exists() && !target.getParentFile().mkdirs())
//         throw new RuntimeException("Unable to create directories for zip file target");
// 
//     ZipFile zipFile = new ZipFile(target);
//     ZipParameters parameters = new ZipParameters();
//     parameters.setIncludeRootFolder(false);
//     zipFile.createZipFileFromFolder(source, parameters, false, -1);
// 
//     return target;
// }


// Path: src/test/java/net/ozwolf/mockserver/raml/handlers/ZipArchiveHandlerTest.java
import net.lingala.zip4j.exception.ZipException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.io.File;
import static net.ozwolf.mockserver.raml.util.Fixtures.zipFixture;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

package net.ozwolf.mockserver.raml.handlers;




public class ZipArchiveHandlerTest {
    @Rule
    public ExpectedException exception = ExpectedException.none();

    @Test
    public void shouldTakeZipFileAndUnpack() throws ZipException {
        File zip = zipFixture("src/test/resources/apispecs-test");