### Question:
FilteringZipDependencySelector implements DependencySelector { @Override public boolean selectDependency(Dependency dependency) { Artifact artifact = dependency.getArtifact(); Map<String, String> properties = artifact.getProperties(); return !"zip".equals(properties.get("type")); }  @Override boolean selectDependency(Dependency dependency); @Override DependencySelector deriveChildSelector(
      DependencyCollectionContext dependencyCollectionContext);  }### Answer:
@Test public void testFilteringZip() { Artifact artifact = new DefaultArtifact("test:dummy:zip:1.0.0", ImmutableMap.of("type", "zip")); Dependency dependency = new Dependency(artifact, "compile"); assertFalse(selector.selectDependency(dependency)); }
@Test public void testFilteringNonZip() { Artifact artifact = new DefaultArtifact("test", "dummy", "jar", "1.0.0"); Dependency dependency = new Dependency(artifact, "compile"); assertTrue(selector.selectDependency(dependency)); }