  @Test
  public void testFromPathInvalidArtifact() {

    int thrown = 0;
    for (Path p : invalidArtifacts) {
      try {
        Artifact.fromPath(p);
      } catch (IllegalArgumentException e) {
        thrown++;
      }
    }

    assertEquals(invalidArtifacts.size(), thrown);
  }