### Question:
NoHttpCheck extends AbstractFileSetCheck implements ExternalResourceHolder { public void setAllowlist(String allowlist) { if (allowlist == null) { throw new IllegalArgumentException("allowlist cannot be null"); } this.allowlist = allowlist; }  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 setAllowlistWhenNullThenIllegalArgumentException() { assertThatCode(() -> this.check.setAllowlist(null)) .isInstanceOf(IllegalArgumentException.class) .hasMessage("allowlist cannot be null"); }