@Test
public void test() {

  MyJavaRulesDefinition rulesDefinition = new MyJavaRulesDefinition();
  RulesDefinition.Context context = new RulesDefinition.Context();
  rulesDefinition.define(context);
  RulesDefinition.Repository repository = context.repository(MyJavaRulesDefinition.REPOSITORY_KEY);
  assertThat(repository.name()).isEqualTo("MyCompany Custom Repository");
  assertThat(repository.language()).isEqualTo("java");
  assertThat(repository.rules()).hasSize(RulesList.getChecks().size());
  assertRuleProperties(repository);
  assertParameterProperties(repository);
  assertAllRuleParametersHaveDescription(repository);
}