// Path: src/main/java/com/jamierf/dropwizard/debpkg/resource/Resource.java
// public abstract class Resource {
// 
//     private final boolean filter;
//     private final String target;
//     private final String user;
//     private final String group;
//     private final int mode;
// 
//     public Resource(final boolean filter, final String target, final String user, final String group, final int mode) {
//         this.target = checkNotNull(target);
//         this.user = checkNotNull(user);
//         this.group = checkNotNull(group);
//         this.filter = filter;
//         this.mode = mode;
//     }
// 
//     public abstract ByteSource getSource();
// 
//     public boolean isFilter() {
//         return filter;
//     }
// 
//     public String getTarget() {
//         return target;
//     }
// 
//     public String getUser() {
//         return user;
//     }
// 
//     public String getGroup() {
//         return group;
//     }
// 
//     public int getMode() {
//         return mode;
//     }
// }


import com.google.common.base.Function;
import com.google.common.collect.Collections2;
import com.google.common.collect.ImmutableSet;
import com.jamierf.dropwizard.debpkg.resource.Resource;
import org.junit.Before;
import org.junit.Test;
import javax.annotation.Nullable;
import java.util.Map;
import java.util.Set;
import static org.junit.Assert.*;
    @Test
    public void testPgpParameter() {
        assertNull(plugin.pgp);
    }

    @Test
    public void testValidateParameter() {
        assertTrue(plugin.validate);
    }

    @Test
    public void testFilesParameter() {
        assertNotNull(plugin.files);
        assertTrue(plugin.files.isEmpty());
    }

    @Test
    public void testParameterMapContainsExpectedValues() {
        final Map<String, Object> params = plugin.buildParameterMap();
        assertEquals(plugin.project, params.get("project"));
        assertEquals(plugin.deb, params.get("deb"));
        assertEquals(plugin.jvm, params.get("jvm"));
        assertEquals(plugin.unix, params.get("unix"));
        assertEquals(plugin.dropwizard, params.get("dw"));
        assertEquals(plugin.dropwizard, params.get("dropwizard"));
        assertEquals(plugin.path, params.get("path"));
    }

    @Test
    public void testResourceListContainsExpectedResources() {
// Path: src/main/java/com/jamierf/dropwizard/debpkg/resource/Resource.java
// public abstract class Resource {
// 
//     private final boolean filter;
//     private final String target;
//     private final String user;
//     private final String group;
//     private final int mode;
// 
//     public Resource(final boolean filter, final String target, final String user, final String group, final int mode) {
//         this.target = checkNotNull(target);
//         this.user = checkNotNull(user);
//         this.group = checkNotNull(group);
//         this.filter = filter;
//         this.mode = mode;
//     }
// 
//     public abstract ByteSource getSource();
// 
//     public boolean isFilter() {
//         return filter;
//     }
// 
//     public String getTarget() {
//         return target;
//     }
// 
//     public String getUser() {
//         return user;
//     }
// 
//     public String getGroup() {
//         return group;
//     }
// 
//     public int getMode() {
//         return mode;
//     }
// }


// Path: src/test/java/com/jamierf/dropwizard/debpkg/DefaultDropwizardMojoTest.java
import com.google.common.base.Function;
import com.google.common.collect.Collections2;
import com.google.common.collect.ImmutableSet;
import com.jamierf.dropwizard.debpkg.resource.Resource;
import org.junit.Before;
import org.junit.Test;
import javax.annotation.Nullable;
import java.util.Map;
import java.util.Set;
import static org.junit.Assert.*;

    @Test
    public void testPgpParameter() {
        assertNull(plugin.pgp);
    }

    @Test
    public void testValidateParameter() {
        assertTrue(plugin.validate);
    }

    @Test
    public void testFilesParameter() {
        assertNotNull(plugin.files);
        assertTrue(plugin.files.isEmpty());
    }

    @Test
    public void testParameterMapContainsExpectedValues() {
        final Map<String, Object> params = plugin.buildParameterMap();
        assertEquals(plugin.project, params.get("project"));
        assertEquals(plugin.deb, params.get("deb"));
        assertEquals(plugin.jvm, params.get("jvm"));
        assertEquals(plugin.unix, params.get("unix"));
        assertEquals(plugin.dropwizard, params.get("dw"));
        assertEquals(plugin.dropwizard, params.get("dropwizard"));
        assertEquals(plugin.path, params.get("path"));
    }

    @Test
    public void testResourceListContainsExpectedResources() {
        final Set<String> targets = ImmutableSet.copyOf(Collections2.transform(plugin.buildResourceList(), new Function<Resource, String>() {