Rule squid1 = rules.find(RuleKey.of("squid", "S0001"));
assertThat(squid1.key().repository()).isEqualTo("squid");
assertThat(squid1.key().rule()).isEqualTo("S0001");
assertThat(squid1.name()).isEqualTo("Detect bug");
assertThat(squid1.description()).isEqualTo("Detect potential bug");
assertThat(squid1.internalKey()).isEqualTo("foo=bar");
assertThat(squid1.status()).isEqualTo(RuleStatus.BETA);
assertThat(squid1.severity()).isEqualTo(Severity.CRITICAL);
assertThat(squid1.debtSubCharacteristic()).isEqualTo("COMPILER");
assertThat(squid1.debtRemediationFunction().type()).isEqualTo(DebtRemediationFunction.Type.LINEAR_OFFSET);