SchemaManager schemaManager = loadSystem();
int nrSize = schemaManager.getSyntaxCheckerRegistry().size();
int goidSize = schemaManager.getGlobalOidRegistry().size();
String oid = "0.0.0";
SyntaxChecker syntaxChecker = new RegexSyntaxChecker( oid );
assertTrue( schemaManager.add( syntaxChecker ) );
SyntaxChecker added = schemaManager.lookupSyntaxCheckerRegistry( oid );
assertNotNull( added );
assertEquals( syntaxChecker.getClass().getName(), added.getFqcn() );
List<Throwable> errors = schemaManager.getErrors();
assertEquals( 0, errors.size() );
assertEquals( nrSize + 1, schemaManager.getSyntaxCheckerRegistry().size() );
assertEquals( goidSize, schemaManager.getGlobalOidRegistry().size() );
SyntaxChecker syntaxChecker2 = new RegexSyntaxChecker( oid );
assertFalse( schemaManager.add( syntaxChecker2 ) );
errors = schemaManager.getErrors();
assertEquals( 1, errors.size() );