### Question:
ExternalDescriptionLoader { public void addHtmlDescription(RulesDefinition.NewRule rule) { URL resource = ExternalDescriptionLoader.class.getResource(resourceBasePath + "/" + rule.key() + ".html"); if (resource != null) { addHtmlDescription(rule, resource); } } ExternalDescriptionLoader(String resourceBasePath); static void loadHtmlDescriptions(RulesDefinition.NewRepository repository, String languageKey); void addHtmlDescription(RulesDefinition.NewRule rule);  }### Answer:
@Test void invalid_url() { final ExternalDescriptionLoader loader = new ExternalDescriptionLoader(LANGUAGE_KEY); final NewRule rule = repository.createRule("ruleWithoutExternalInfo").setName("name1"); final Throwable thrown = catchThrowable(() -> loader.addHtmlDescription(rule, new URL("file: assertThat(thrown).isInstanceOf(IllegalStateException.class); }