@Override
  public void define(Context context) {
    NewRepository repo = context.createRepository(EDUCATION_RULE_REPOSITORY_KEY, EDUCATION_KEY);

    createRuleWithDescriptionSectionsAndEducationPrinciples(repo);
    createRuleWithDescriptionSectionsAndSingleContext(repo);
    createRuleWithDescriptionSectionsAndMultipleContexts(repo);
    createRuleWithDescriptionSectionsAndMultipleContextsIncludingOneDetected(repo);

    createRuleWith2LinkedCodeSnippetsInTwoSections(repo);

    createRuleWith4LinkedCodeSnippetsInOneSection(repo);

    repo.done();
  }
@Test
  public void define_addsRuleDefinitions() {
    EducationRulesDefinition educationRulesDefinition = new EducationRulesDefinition();

    RulesDefinition.Context context = new RulesDefinition.Context();

    educationRulesDefinition.define(context);

    List<RulesDefinition.Repository> repositories = context.repositories();
    assertThat(repositories).hasSize(1);

    RulesDefinition.Repository repository = context.repositories().get(0);
    List<RulesDefinition.Rule> rules = repository.rules();
    assertThat(rules).hasSizeGreaterThanOrEqualTo(4);
  }