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