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