verify(cache).put(argument.capture());
DefaultIssue issue = argument.getValue();
assertThat(issue.severity()).isEqualTo(Severity.CRITICAL);
assertThat(issue.line()).isEqualTo(42);
assertThat(issue.message()).isEqualTo("the message");
assertThat(issue.key()).isNotEmpty();
assertThat(issue.ruleKey().toString()).isEqualTo("squid:AvoidCycle");
assertThat(issue.componentKey()).isEqualTo("struts:src/org/struts/Action.java");
assertThat(issue.projectKey()).isEqualTo("org.apache:struts-core");
}