### Question:
NoHttpCheck extends AbstractFileSetCheck implements ExternalResourceHolder { public void setAllowlistFileName(String allowlistFileName) { if (allowlistFileName == null) { throw new IllegalArgumentException("allowlistFileName cannot be null"); } this.allowlistFileName = allowlistFileName; }  void setAllowlistFileName(String allowlistFileName); void setAllowlist(String allowlist); @Deprecated void setWhitelistFileName(String allowlistFileName); @Deprecated void setWhitelist(String allowlist); @Override Set<String> getExternalResourceLocations();  }### Answer:
@Test public void setAllowlistFilenameWhenNullThenIllegalArgumentException() { assertThatCode(() -> this.check.setAllowlistFileName(null)) .isInstanceOf(IllegalArgumentException.class) .hasMessage("allowlistFileName cannot be null"); }