  @Test
  public void successfullyDiscoverArtifact() throws IOException {

    tempFolder.newFile(SAMPLE_ARTIFACT_FILE_NAME);
    ArtifactSizeEnforcerRule enforcer = new ArtifactSizeEnforcerRule();
    try {
      enforcer.execute(defaultMockhelper);
    } catch (EnforcerRuleException e) {
      fail("Failed to discover artifact.");
    }
  }