### Question:
PmdPlugin extends SonarPlugin { @Override public List getExtensions() { return ImmutableList.of( PropertyDefinition.builder(PmdConfiguration.PROPERTY_GENERATE_XML) .defaultValue("false") .name("Generate XML Report") .hidden() .build(), PmdSensor.class, PmdConfiguration.class, PmdExecutor.class, PmdRulesDefinition.class, PmdUnitTestsRulesDefinition.class, PmdProfileExporter.class, PmdProfileImporter.class, PmdViolationRecorder.class); }  @Override List getExtensions();  }### Answer:
@Test public void should_contain_both_rule_repositories() { assertThat(plugin.getExtensions()).contains(PmdRulesDefinition.class, PmdUnitTestsRulesDefinition.class); }