### Question:
AbstractAnsibleRulesDefinition implements RulesDefinition { protected abstract String getRuleDefinitionPath();  @Override void define(RulesDefinition.Context context);  }### Answer:
@Test public void testDefineWithExistingRules() { AbstractAnsibleRulesDefinition definition = new MyRulesDefinition("my-rules"); assertEquals("my-rules", definition.getRuleDefinitionPath()); testDefineWithExistingRules(definition, false); }
@Test public void testExtras() { AbstractAnsibleRulesDefinition definition = new AnsibleExtraRulesDefinition(); assertEquals("org/sonar/l10n/ansible/rules/ansible-extras", definition.getRuleDefinitionPath()); testDefineWithExistingRules(definition, true); }