Properties prop = new Properties();
prop.setProperty(MOCK_AXIOM_LINT_PATTERN_NAME, "ON");
prop.setProperty(MOCK_AXIOM_LINT_PATTERN_NAME + "." + "foo", "10");
prop.setProperty(MOCK_ONTOLOGY_LINT_PATTERN_NAME, "ON");
prop.setProperty(MOCK_ONTOLOGY_LINT_PATTERN_NAME + "." + "foo", "X");
LintPatternLoader loader = new LintPatternLoader(prop);
assertEquals(1, loader.getAxiomLintPatterns().size());
assertEquals(1, loader.getOntologyLintPatterns().size());
MockAxiomLintPattern axiomPattern = (MockAxiomLintPattern) loader.getAxiomLintPatterns().get(0);
assertEquals(0, axiomPattern.getIntParam());
assertNull(axiomPattern.getStringParam());
MockOntologyLintPattern ontologyPattern = (MockOntologyLintPattern) loader.getOntologyLintPatterns().get(0);
assertEquals(0, ontologyPattern.getIntParam());
assertNull(ontologyPattern.getStringParam());
}