{
SchemaManager schemaManager = loadSystem();
int atrSize = schemaManager.getAttributeTypeRegistry().size();
int goidSize = schemaManager.getGlobalOidRegistry().size();
AttributeType attributeType = new AttributeType( "1.1.0" );
attributeType.setEqualityOid( "2.5.13.1" );
attributeType.setOrderingOid( null );
attributeType.setSubstringOid( null );
attributeType.setSyntaxOid( "1.3.6.1.4.1.1466.115.121.1.26" );
attributeType.setUsage( UsageEnum.USER_APPLICATIONS );
attributeType.setCollective( true );
attributeType.setSingleValued( true );
// It should fail
assertFalse( schemaManager.add( attributeType ) );
List<Throwable> errors = schemaManager.getErrors();