// check first to see if it is present in the subschemaSubentry
// -------------------------------------------------------------------
Attributes attrs = getSubschemaSubentryAttributes();
Attribute attrTypes = attrs.get( "objectClasses" );
ObjectClass objectClass = null;
for ( int i = 0; i < attrTypes.size(); i++ )
{
String desc = ( String ) attrTypes.get( i );
if ( desc.indexOf( oid ) != -1 )
{
objectClass = OBJECT_CLASS_DESCRIPTION_SCHEMA_PARSER
.parseObjectClassDescription( desc );
break;
}
}
if ( isPresent )
{
assertNotNull( objectClass );
assertEquals( oid, objectClass.getOid() );
}
else
{
assertNull( objectClass );
}