public Input<DefaultIssue> create(Component component) {
    return new RawLazyInput(component);
  }
@Test
  void create_whenSeverityAndTypeNotProvided_shouldTakeFromTheRule() {
    registerRule(RuleKey.of("external_eslint", "S001"), "rule", r -> {
      r.setType(RuleType.BUG);
      r.setSeverity(Severity.MAJOR);
    });
    ScannerReport.ExternalIssue reportIssue = createIssue(null, null);
    reportReader.putExternalIssues(FILE.getReportAttributes().getRef(), asList(reportIssue));
    Input<DefaultIssue> input = underTest.create(FILE);

    Collection<DefaultIssue> issues = input.getIssues();
    assertThat(issues).hasSize(1);
    DefaultIssue issue = Iterators.getOnlyElement(issues.iterator());

    assertThat(issue.type()).isEqualTo(RuleType.BUG);
    assertThat(issue.severity()).isEqualTo(Severity.MAJOR);
  }