### Question:
LessRulesDefinition implements RulesDefinition { @Override public void define(Context context) { NewRepository repository = context .createRepository(CheckList.LESS_REPOSITORY_KEY, LessLanguage.KEY) .setName(CheckList.LESS_REPOSITORY_NAME); new AnnotationBasedRulesDefinition(repository, LessLanguage.KEY).addRuleClasses(false, CheckList.getLessChecks()); repository.done(); }  @Override void define(Context context);  }### Answer:
@Test public void test() { LessRulesDefinition rulesDefinition = new LessRulesDefinition(); RulesDefinition.Context context = new RulesDefinition.Context(); rulesDefinition.define(context); RulesDefinition.Repository repository = context.repository("less"); assertThat(repository.name()).isEqualTo("SonarQube"); assertThat(repository.language()).isEqualTo("less"); assertThat(repository.rules()).hasSize(88); RulesDefinition.Rule rule = repository.rule(DeprecatedEscapingFunctionCheck.class.getAnnotation(Rule.class).key()); assertThat(rule).isNotNull(); assertThat(rule.name()).isEqualTo(DeprecatedEscapingFunctionCheck.class.getAnnotation(Rule.class).name()); }