@Override
    public boolean passes(final String artifactType) {

        return StringUtils.isNotEmpty(regex) && StringUtils.isNotEmpty(artifactType) && artifactType.matches(regex);
    }
@Test
    public void testPasses() {
        String artifactType = null;
        ArtifactTypeExcluded instance = new ArtifactTypeExcluded(null);
        boolean expResult = false;
        boolean result = instance.passes(artifactType);
        assertEquals(expResult, result);

        artifactType = "pom";
        instance = new ArtifactTypeExcluded(null);
        expResult = false;
        result = instance.passes(artifactType);
        assertEquals(expResult, result);
        
        artifactType = null;
        instance = new ArtifactTypeExcluded("jar");
        expResult = false;
        result = instance.passes(artifactType);
        assertEquals(expResult, result);
        
        artifactType = "pom";
        instance = new ArtifactTypeExcluded("");
        expResult = false;
        result = instance.passes(artifactType);
        assertEquals(expResult, result);
        
        artifactType = "pom";
        instance = new ArtifactTypeExcluded("jar");
        expResult = false;
        result = instance.passes(artifactType);
        assertEquals(expResult, result);
        
        artifactType = "pom";
        instance = new ArtifactTypeExcluded("pom");
        expResult = true;
        result = instance.passes(artifactType);
        assertEquals(expResult, result);
        
        artifactType = "pom";
        instance = new ArtifactTypeExcluded(".*");
        expResult = true;
        result = instance.passes(artifactType);
        assertEquals(expResult, result);
    }